πŸ“Š Angular
Q. What is the use of the @Output decorator in Angular?
  • (A) To emit events from a child component to a parent
  • (B) To pass data to a child component
  • (C) To create directives
  • (D) To define modules
πŸ’¬ Discuss
βœ… Correct Answer: (A) To emit events from a child component to a parent

Explanation: @Output works with EventEmitter to send data up the component tree.

Explanation by: Mr. Dubey
@Output works with EventEmitter to send data up the component tree.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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