angular2-debounce

numsu
deprecated
angular2-debounce JS library on GitHub angular2-debounce JS library on npm Download angular2-debounce JS library

Directive that adds a debounce effect (delay) to your input fields.

Version 1.0.4 License MIT
angular2-debounce has no homepage
angular2-debounce JS library on GitHub
angular2-debounce JS library on npm
Download angular2-debounce JS library
Keywords
ng2angularangular2debounceinputdelay@angular
<script type="module"> import angular2Debounce from 'https://cdn.jsdelivr.net/npm/angular2-debounce@1.0.4/+esm' </script>
Learn more

npm version

angular2-debounce

angular2-debounce is an Angular2 directive that adds a debounce to your input fields.

It delays the start of a function call after every keyup -event.

Installation:

npm install angular2-debounce --save

Use Example:

Add the declaration to your @NgModule:

import {Debounce} from 'angular2-debounce';

...

@NgModule({
  declarations: [
    Debounce
  ]
})

Use directly inside your HTML templates

<input debounce [delay]="700" (func)="myDebouncedFunction()" [(ngModel)]="..." name="Debounce input" class="form-control input-sm">

Author

Miro Metsänheimo

Licence

This project is licensed under the MIT license. See the LICENSE file for more info.