A

Admin • 833.24K Points
Coach

Q. Which Angular decorator is used to listen to DOM events inside a component?

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

Explanation by: Admin

@HostListener binds event handlers to host element events.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.