Q. Which decorator is used to define input properties in Angular?

  • (A) @ViewChild
  • (B) @Input
  • (C) @Output
  • (D) @Injectable
πŸ’¬ Discuss
βœ… Correct Answer: (B) @Input
Explanation: @Input is used to pass data from parent to child components.
Explanation by: Mr. Dubey
@Input is used to pass data from parent to child components.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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