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