A

Admin • 828.70K Points
Coach

Q. How do you access a child component’s method or property from a parent component?

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

Explanation by: Admin
@ViewChild allows a parent component to reference child components.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.