A

Admin • 833.24K Points
Coach

Q. What Angular decorator is used to get a reference to a child component or DOM element?

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

Explanation by: Admin

@ViewChild retrieves references from the template.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.