What is DOM Event delegation?
Can anyone please explain event delegation in JavaScript and how is it useful? 11 Answers 11
Can anyone please explain event delegation in JavaScript and how is it useful? 11 Answers 11
I am trying to implement something like a delegation pattern in Angular. When the user clicks on a nav-item, I would like to call a function which then emits an event which should in turn be handled by some other component listening for the event. Here is the scenario: I have a Navigation component: import … Read more