UNPKG

@jaspero/ng-helpers

Version:

[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![CircleCI](https://circleci.com/gh/Jaspero/ng-helpers.svg?style=svg)](https://circleci.

32 lines 1.45 kB
import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnDestroy } from '@angular/core'; import { Subscription } from 'rxjs'; import * as i0 from "@angular/core"; export declare class DebounceChangeDirective implements AfterViewInit, OnDestroy { private _el; private _ngZone; private _defaultDebounceTime; constructor(_el: ElementRef, _ngZone: NgZone, _defaultDebounceTime: number); /** * time to forward to the debounceTime pipe */ debounceTime: any; /** * Any valid html event */ debounceChangeEventType: string; /** * If true and the event has a 'target.value' * we listen for it and only emit if the value changed */ emitOnlyOnChange: boolean; /** * Emits original event after debounce */ jpDebounceChange: EventEmitter<string>; subscription: Subscription; ngAfterViewInit(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<DebounceChangeDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<DebounceChangeDirective, "[jpDebounceChange]", never, { "debounceTime": { "alias": "debounceTime"; "required": false; }; "debounceChangeEventType": { "alias": "debounceChangeEventType"; "required": false; }; "emitOnlyOnChange": { "alias": "emitOnlyOnChange"; "required": false; }; }, { "jpDebounceChange": "jpDebounceChange"; }, never, never, false, never>; } //# sourceMappingURL=debounce-change.directive.d.ts.map