{"id":15142019,"url":"https://github.com/mrnkr/nativescript-ngx-debounce-tap","last_synced_at":"2026-02-10T15:03:34.718Z","repository":{"id":57156939,"uuid":"115270528","full_name":"mrnkr/nativescript-ngx-debounce-tap","owner":"mrnkr","description":"{N} + Angular directive for debouncing taps and adding animated feedback to the interaction","archived":false,"fork":false,"pushed_at":"2018-01-10T01:29:21.000Z","size":2502,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-16T22:54:21.251Z","etag":null,"topics":["angular","nativescript","nativescript-angular","nativescript-plugin","rxjs"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrnkr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-24T15:08:12.000Z","updated_at":"2024-05-30T17:00:45.000Z","dependencies_parsed_at":"2022-09-03T18:51:14.535Z","dependency_job_id":null,"html_url":"https://github.com/mrnkr/nativescript-ngx-debounce-tap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrnkr/nativescript-ngx-debounce-tap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrnkr%2Fnativescript-ngx-debounce-tap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrnkr%2Fnativescript-ngx-debounce-tap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrnkr%2Fnativescript-ngx-debounce-tap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrnkr%2Fnativescript-ngx-debounce-tap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrnkr","download_url":"https://codeload.github.com/mrnkr/nativescript-ngx-debounce-tap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrnkr%2Fnativescript-ngx-debounce-tap/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268340272,"owners_count":24234699,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","nativescript","nativescript-angular","nativescript-plugin","rxjs"],"created_at":"2024-09-26T09:21:50.271Z","updated_at":"2026-02-10T15:03:34.348Z","avatar_url":"https://github.com/mrnkr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nativescript-ngx-debounce-tap\n\n[![NPM version][npm-image]][npm-url]\n[![Downloads][downloads-image]][npm-url]\n[![Twitter Follow][twitter-image]][twitter-url]\n\n[npm-image]:http://img.shields.io/npm/v/nativescript-ngx-debounce-tap.svg\n[npm-url]:https://npmjs.org/package/nativescript-ngx-debounce-tap\n[downloads-image]:http://img.shields.io/npm/dm/nativescript-ngx-debounce-tap.svg\n[twitter-image]:https://img.shields.io/twitter/follow/xmr_nkr.svg?style=social\u0026label=Follow%20me\n[twitter-url]:https://twitter.com/xmr_nkr\n\n{N} + Angular directive for debouncing taps and adding animated feedback to the interaction.\n\n## Installation\n\n```\ntns plugin add nativescript-ngx-debounce-tap\n```\n\n## Usage \n\n### Import the module in your app module\n\n```typescript\nimport { NgDebounceTapModule } from 'nativescript-ngx-debounce-tap';\n\n@NgModule({\n    imports: [\n        NgDebounceTapModule,\n        // ...\n    ],\n    // ...\n})\nexport class MyModule { }\n```\n\n### Then use it in your templates like so\n\n```xml\n \u003cLabel text=\"Hello World!\" \n        ngDebounceTap \n        [delay]=\"320\"\n        [anim]=\"'composite'\" \n        [scale]=\"1.06\" \n        [opacity]=\"0.2\" \n        (debounceTap)=\"hello()\"\u003e\u003c/Label\u003e\n```\n\n### Do check out the demo for a quickstart\n\n![Screenshot portrait](demo/app/assets/screenshot.png)\n\n## API\n    \n| Property | Type | Default | Description |\n| --- | --- | --- | --- |\n| delay | number | 300 | The time between each processed tap in milliseconds. |\n| anim | string | n/a | The way the interaction is to be animated. Possible values: 'composite', 'opacity', 'scale'. Scale =\u003e The element is magnified and returned to its original state. Opacity =\u003e The element has its opacity dropped to 0.6 and then returns to normal, like TouchableOpacity in React Native (not the values, the behavior). Composite =\u003e Performs both animations symultaneously. |\n| scale | number | 1.2 | The scale to use when magnifying the element. Set this in order to keep the animation as seamless as possible. |\n| opacity | number | 0.6 | The opacity used to animate the interaction. Set it to your liking, the default value can be hard to see on some scenarios so keep that in mind! |\n| debounceTap | EventEmitter\u003cElementRef\u003e | n/a | The event that is emitted when a tap is processed. The $event variable will have a reference to the element that was tapped (as an ElementRef). In case the scale animation is not your thing you can set [anim] to false and make one that suits you in this callback yourself. |\n\n## Changelog\n\n1.2.0 - Added the opacity @Input property to the directive for further customization.\n1.1.0 - Added opacity animation as an option.\n1.0.0 - Initial implementation\n\n## License\n\nApache License Version 2.0, January 2004\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrnkr%2Fnativescript-ngx-debounce-tap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrnkr%2Fnativescript-ngx-debounce-tap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrnkr%2Fnativescript-ngx-debounce-tap/lists"}