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
πŸ’¬ Discuss
βœ… Correct Answer: (A) `@Input()` passes data to child, `@Output()` emits events to parent
Explanation: `@Input()` and `@Output()` are used for component interaction.
Explanation by: Mr. Dubey
`@Input()` and `@Output()` are used for component interaction.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
72
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
80%
Success Rate