A

Admin • 830.13K Points
Coach

Q. Which decorator is used to listen to DOM events in Angular components?

  • (A) @HostListener
  • (B) @Input
  • (C) @Output
  • (D) @Injectable
  • Correct Answer - Option(A)
  • Views: 19
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
@HostListener listens to host element events inside a component or directive.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.