Listener

From Get docs
< @angular/core‎ | globalAngular/docs/11/api/core/global/listener


Listener

interface

Event listener configuration returned from getListeners.

interface Listener {
  name: string
  element: Element
  callback: (value: any) => any
  useCapture: boolean
  type: 'dom' | 'output'
}

Properties

Property Description
name: string Name of the event listener.
element: Element Element that the listener is bound to.
callback: (value: any) => any Callback that is invoked when the event is triggered.
useCapture: boolean Whether the listener is using event capturing.
'output' Type of the listener (e.g. a native DOM event or a custom @Output).


© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v11.angular.io/api/core/global/Listener