A

Admin • 802.91K Points
Coach

Q. What is the purpose of `@ViewChild()`?

  • (A) To access a child component or DOM element
  • (B) To emit data to the parent
  • (C) To create HTTP clients
  • (D) To enable two-way binding
  • Correct Answer - Option(A)
  • Views: 4
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
`@ViewChild()` allows a component to access an element or directive in its template.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.