getListeners
function
Retrieves a list of event listeners associated with a DOM element. The list does include host
listeners, but it does not include event listeners defined outside of the Angular context
(e.g. through addEventListener
).
API
Usage Notes
function getListeners( element: Element): Listener[];
getListeners
Listener[]
Retrieves a list of event listeners associated with a DOM element. The list does include host
listeners, but it does not include event listeners defined outside of the Angular context
(e.g. through addEventListener
).
@paramelement
Element
Element for which the DOM listeners should be retrieved.
@returns
Listener[]
Jump to details