A

Admin • 828.70K Points
Coach

Q. How do you access a child component's properties in the parent component?

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

Explanation by: Admin
@ViewChild allows parent component to access child component instances.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.