• Overview
@angular/platform-browser

EventManager

Class

An injectable service that provides event management for Angular through a browser plug-in.

  
    class EventManager {}
  
  

addEventListener

Function

Registers a handler for a specific element and event.

@paramelementHTMLElement

The HTML element to receive event notifications.

@parameventNamestring

The name of the event to listen for.

@paramhandlerFunction

A function to call when the notification occurs. Receives the event object as an argument.

@returnsFunction

getZone

Retrieves the compilation zone in which event listeners are registered.

@returnsNgZone
Jump to details