{"id":15573016,"url":"https://github.com/ddjain/ngdebounceclick","last_synced_at":"2025-04-24T00:43:52.577Z","repository":{"id":43419319,"uuid":"282673873","full_name":"ddjain/ngDebounceClick","owner":"ddjain","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-08T01:30:25.000Z","size":187,"stargazers_count":4,"open_issues_count":9,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-18T21:42:28.428Z","etag":null,"topics":["angular","angularjs","debounce-button","debouncing","directive","javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ddjain.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":"2020-07-26T15:05:56.000Z","updated_at":"2022-01-25T18:31:03.000Z","dependencies_parsed_at":"2023-01-24T05:00:48.300Z","dependency_job_id":null,"html_url":"https://github.com/ddjain/ngDebounceClick","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddjain%2FngDebounceClick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddjain%2FngDebounceClick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddjain%2FngDebounceClick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddjain%2FngDebounceClick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ddjain","download_url":"https://codeload.github.com/ddjain/ngDebounceClick/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250540945,"owners_count":21447426,"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","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","angularjs","debounce-button","debouncing","directive","javascript"],"created_at":"2024-10-02T18:09:53.481Z","updated_at":"2025-04-24T00:43:52.551Z","avatar_url":"https://github.com/ddjain.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ngDebounceClick\nng-debounce-click is the directive which is help to improve browser performance by reducing expensive/time consuming function invokation.\n\n## About\nng-debounce-click is a directive used to make sure that expensive/time consiming function do not fire so often that may cause low web perfomance. we can limit the rate of invokation of function.\n\n## Requirements\n* Angular js.\n\nInclude `ng-debounce-click.js` after `angular.js` library.\n\nexample:\n\nJS\n```\n\t// include the `ngDebounceClick` module\n\tvar app = angular.module('myApp', ['ngDebounceClick']);\n\tapp.controller('myCtrl', function($scope) {\n\t\t$scope.myOnClickExpensiveFunction = function() {\n\t\t  //TODO : Some Expensive implementation.\n\t\t};\n\n\t});  \n \n```\n\nHTML \n\n```\n  \u003cdiv ng-app='myApp' ng-controller='myCtrl'\u003e \n       \u003cinput type=\"button\" ng-debounce-click=\"myOnClickExpensiveFunction()\" ng-debounce-options=\"{time:1000}\" value=\"Click Me\"\u003e\n  \u003c/div\u003e\n```  \n### ng-debounce-options\n- time: (miliseconds) function get called if no event is fire for given time.\n         Default time is 500ms\n  \n## Contributing\n \nContributors are welcome. I am interested in suggestions for new features or improvements. Please get in touch.\n\nEmail: nnd.darshan@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddjain%2Fngdebounceclick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fddjain%2Fngdebounceclick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddjain%2Fngdebounceclick/lists"}