W3cubDocs

/Angular

EventManager

class

npm Package @angular/platform-browser
Module import { EventManager } from '@angular/platform-browser';
Source platform-browser/src/dom/events/event_manager.ts

Overview

class EventManager {
  addEventListener(element: HTMLElement, eventName: string, handler: Function): Function
  addGlobalEventListener(target: string, eventName: string, handler: Function): Function
  getZone(): NgZone
}

Constructor

constructor(plugins: EventManagerPlugin[], _zone: NgZone)

Members

addEventListener(element: HTMLElement, eventName: string, handler: Function): Function

addGlobalEventListener(target: string, eventName: string, handler: Function): Function

getZone(): NgZone

Annotations

@Injectable()

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/platform-browser/EventManager