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

  • (A) Using @Input
  • (B) Using @Output
  • (C) Using a service
  • (D) Using ngModel
πŸ’¬ Discuss
βœ… Correct Answer: (A) Using @Input
Explanation: The @Input decorator allows parent components to pass data to child components.
Explanation by: Mr. Dubey
The @Input decorator allows parent components to pass data to child components.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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