Question from the Angular test

In an Angular directive, which decorator should we use to listen for an event of the element that this same directive is placed on?

Easy

In a directive, which decorator should we use to listen for an event of the element that this same directive is placed on?

Author: Emmanuel DemeyStatus: PublishedQuestion passed 2678 times
Edit
5
Community Evaluations
developer avatar
No
26/06/2024
NW :In an Angular directive, to listen for an event on the element that the directive is placed on, you should use the @HostListener decorator.