A

Admin • 833.24K Points
Coach

Q. How can you pass data from a parent to a child component in Angular?

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

Explanation by: Admin

@Input allows data binding from parent to child components.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.