Nuanced Pumpkin Mavens

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

    2.0.1 • Public • Published

    npm version

    ngx-debounce

    ngx-debounce is an Angular directive that adds a debounce to your input fields.

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

    Installation:

    npm i ngx-debounce --save

    Use Example:

    Add the declaration to your @NgModule:

    import {DebounceModule} from 'ngx-debounce';
     
    ...
     
    @NgModule({
      ...
      Imports[
        DebounceModule
      ]
      ...
    })

    Use directly inside your HTML templates

    <input debounce [delay]="700" (func)="myDebouncedFunction()" [(ngModel)]="..." name="Debounce input">
    

    Author

    Miro Metsänheimo

    Licence

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

    Install

    npm i ngx-debounce

    DownloadsWeekly Downloads

    290

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    43.7 kB

    Total Files

    23

    Last publish

    Collaborators

    • numsu