A

Admin • 833.24K Points
Coach

Q. What is the difference between `@Input()` and `@Output()`?

  • (A) `@Input()` passes data to child, `@Output()` emits events to parent
  • (B) `@Input()` is for services, `@Output()` is for events
  • (C) No difference
  • (D) `@Input()` binds functions, `@Output()` binds properties
  • Correct Answer - Option(A)
  • Views: 40
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

`@Input()` and `@Output()` are used for component interaction.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.