A

Admin • 833K Points
Coach

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

  • (A) Using @Output with EventEmitter
  • (B) Using @Input
  • (C) Using Service only
  • (D) Using ngModel
  • Correct Answer - Option(A)
  • Views: 28
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

@Output decorator along with EventEmitter is used to send events from child to parent.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.