Q. What does the Angular @HostListener decorator do?
β
Correct Answer: (A)
Binds a method to a DOM event of the host element
Explanation: @HostListener listens to events on the component’s host element.