ng2-events
Version:
Supercharge your Angular2+ event handling
17 lines (16 loc) • 616 B
TypeScript
import { MyEventManagerPlugin } from "../__util/event-manager-plugin";
import * as i0 from "@angular/core";
/**
* Automatically unregister an event listener after the event fired once
*
* Usage:
* <button (once.click)="foo()">...</button>
*
*/
export declare class OnceEventPlugin extends MyEventManagerPlugin {
constructor(doc: any);
supports(eventName: string): boolean;
addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
static ɵfac: i0.ɵɵFactoryDeclaration<OnceEventPlugin, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<OnceEventPlugin>;
}