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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    1
    • latest

Version History

Package Sidebar

Install

npm i ngd-debounce

Weekly Downloads

2

Version

1.0.3

License

none

Unpacked Size

22.8 kB

Total Files

14

Last publish

Collaborators

  • mdanial07