A

Admin • 802.91K Points
Coach

Q. What is the purpose of the @ViewChild decorator?

  • (A) Access a child component, directive, or DOM element
  • (B) Define input properties
  • (C) Listen to output events
  • (D) Create a new component
  • Correct Answer - Option(A)
  • Views: 3
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
@ViewChild allows interaction with child components or DOM.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.