This is the archived documentation for Angular v5. Please visit angular.io to see documentation for the current version of Angular.

EventManager

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()