A

Admin • 828.03K Points
Coach

Q. How can you access a child component's properties and methods in Angular?

  • (A) Using @ViewChild decorator
  • (B) Using @Input decorator
  • (C) Using event binding
  • (D) Using services
  • Correct Answer - Option(A)
  • Views: 13
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
@ViewChild gets a reference to a child component or element in the template.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.