https://github.com/ddjain/ngdebounceclick
https://github.com/ddjain/ngdebounceclick
angular angularjs debounce-button debouncing directive javascript
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ddjain/ngdebounceclick
- Owner: ddjain
- License: mit
- Created: 2020-07-26T15:05:56.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T01:30:25.000Z (over 2 years ago)
- Last Synced: 2025-04-18T21:42:28.428Z (about 2 months ago)
- Topics: angular, angularjs, debounce-button, debouncing, directive, javascript
- Language: JavaScript
- Homepage:
- Size: 183 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ngDebounceClick
ng-debounce-click is the directive which is help to improve browser performance by reducing expensive/time consuming function invokation.## About
ng-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.## Requirements
* Angular js.Include `ng-debounce-click.js` after `angular.js` library.
example:
JS
```
// include the `ngDebounceClick` module
var app = angular.module('myApp', ['ngDebounceClick']);
app.controller('myCtrl', function($scope) {
$scope.myOnClickExpensiveFunction = function() {
//TODO : Some Expensive implementation.
};});
```HTML
```
```
### ng-debounce-options
- time: (miliseconds) function get called if no event is fire for given time.
Default time is 500ms
## Contributing
Contributors are welcome. I am interested in suggestions for new features or improvements. Please get in touch.Email: [email protected]