UNPKG

ng2-events

Version:

Supercharge your Angular2+ event handling

25 lines (24 loc) 959 B
import { MyEventManagerPlugin } from "../__util/event-manager-plugin"; import * as i0 from "@angular/core"; /** * Control event listeners with an observable operator without triggering change detection * every time the event fires * * Usage: * <button (observe.throttleTime-500.click)="foo()"></button> * * The method used must be present on the Observable object * e.g. through an explicit import: * import 'rxjs/add/operator/throttleTime'; * * * To get finer-grained control and the possibility to add multiple observable operators * use the ObserveEventDirective. */ export declare class ObserveEventPlugin extends MyEventManagerPlugin { constructor(doc: any); supports(eventName: string): boolean; addEventListener(element: HTMLElement, eventName: string, handler: Function): Function; static ɵfac: i0.ɵɵFactoryDeclaration<ObserveEventPlugin, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ObserveEventPlugin>; }