debounce-input
v0.0.1
Published
Angular debounce input / textarea / contentedible attribute
Downloads
2
Readme
Angular Debounce Input
Debounce user input's value. It works with input
, textarea
, any element supports contenteditable
attribute
(https://stackblitz.com/edit/angular-debounce-input)[Demo]
Usage:
import DebounceInputDirective
in your app module declarations.
debounceInputConfig
input is optional
default value {delay:300, event: 'keyup'}
<input (debounceInput)="changeName($event)" [debounceInputConfig]="{delay:500, event:'keyup'}">
// or
<input (debounceInput)="changeName($event)">