ngd-debounce
ngd-debounce is an Angular directive that adds a debounce (delay time) to your input fields.
It delays(debounce) the start of a function call after every keyup event.
Installation:
npm i ngd-debounce --save
Use Example:
Add the declaration to your @NgModule:
import {NgdDebounceModule} from 'ngd-debounce';
...
@NgModule({
...
Imports: [
NgdDebounceModule
]
...
})
Use ngd-debounce directive like this in your html.
<input debounce (debounce)="myFunction($event)" [time]="1000" name="Your input">