ngd-debounce
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

npm version

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">

Author

Muhammad Danial

Package Sidebar

Install

npm i ngd-debounce

Weekly Downloads

11

Version

1.0.3

License

none

Unpacked Size

22.8 kB

Total Files

14

Last publish

Collaborators

  • mdanial07