EventManager
An injectable service that provides event management for Angular through a browser plug-in.
class EventManager {
constructor(plugins: EventManagerPlugin[], _zone: NgZone)
addEventListener(element: HTMLElement, eventName: string, handler: Function): Function
addGlobalEventListener(target: string, eventName: string, handler: Function): Function
getZone(): NgZone
}
Constructor
Initializes an instance of the event-manager service. |
||||
Parameters
|
Methods
Registers a handler for a specific element and event. |
ParametersReturns
|
Registers a global handler for an event in a target view. |
ParametersReturns
|
Retrieves the compilation zone in which event listeners are registered. |
ParametersThere are no parameters. Returns |