A

Admin • 830.13K Points
Coach

Q. How do you access a child component’s properties from the parent component?

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

Explanation by: Admin
@ViewChild gets a reference to child components or DOM elements.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.