Q. How can you pass data from a parent component to a child component?

  • (A) Using @Input decorator
  • (B) Using @Output decorator
  • (C) Using EventEmitter
  • (D) Using ViewChild
πŸ’¬ Discuss
βœ… Correct Answer: (A) Using @Input decorator
Explanation: @Input allows a parent component to bind data to a child component.
Explanation by: Mr. Dubey
@Input allows a parent component to bind data to a child component.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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