UNPKG

ng2-events

Version:

Supercharge your Angular2+ event handling

17 lines (16 loc) 652 B
import { MyEventManagerPlugin } from "../__util/event-manager-plugin"; import * as i0 from "@angular/core"; /** * Quick-firing 'up' and 'down' events that work cross-browser for mouse and touch events * * Usage: * <button (down)="activate()" (up)="deactivate()"></button> * */ export declare class TouchEventPlugin extends MyEventManagerPlugin { constructor(doc: any); supports(eventName: string): boolean; addEventListener(element: HTMLElement, eventName: string, handler: Function): Function; static ɵfac: i0.ɵɵFactoryDeclaration<TouchEventPlugin, never>; static ɵprov: i0.ɵɵInjectableDeclaration<TouchEventPlugin>; }