πŸ“Š Angular
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) Using @Output with EventEmitter

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

Explanation by: Mr. Dubey
@Output decorator along with EventEmitter is used to send events from child to parent.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
37
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
98%
Success Rate