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 {
  constructor(plugins: EventManagerPlugin[], _zone: NgZone)
  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://v4.angular.io/api/platform-browser/EventManager