πŸ“Š Angular
Q. How do you pass data from a parent to a child component?
  • (A) @Input() decorator
  • (B) @Output() decorator
  • (C) EventEmitter
  • (D) ViewChild
πŸ’¬ Discuss
βœ… Correct Answer: (A) @Input() decorator

Explanation: @Input allows data binding from parent to child components.

Explanation by: Mr. Dubey
@Input allows data binding from parent to child components.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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