M
M
Michail2020-06-08 17:42:13
Angular
Michail, 2020-06-08 17:42:13

What does the eventListeners property add to all angular 2+ nodes?

I recently learned that all nodes in an agular have an eventListeners property. This is a function that returns an array of all handlers that are attached to the element. A quick google did not help to understand what this property hangs on the node node.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shvets, 2020-06-08
@Michail_04

Zone.js
here https://github.com/angular/angular/blob/aaa20093b2...
DebugElement can also access this list of listeners, you can use it in tests.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question