A

Admin • 833.24K Points
Coach

Q. What does the Angular @HostListener decorator do?

  • (A) Binds a method to a DOM event of the host element
  • (B) Creates a new component
  • (C) Binds data to the host element
  • (D) Defines CSS styles for the host element
  • Correct Answer - Option(A)
  • Views: 29
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

@HostListener listens to events on the component’s host element.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.