The HostListener decorator in custom directives listens to ________ events.

  • Custom
  • DOM
  • Input
  • Mouse
The HostListener decorator in custom directives listens to DOM events. It is used to subscribe to DOM events and perform custom actions when those events occur. The decorator takes the event name as an argument, allowing you to specify which DOM event the directive should listen for and respond to. This is a fundamental concept when working with Angular custom directives.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *