Q. How do you access a child component’s properties from the parent component?

  • (A) Using @ViewChild decorator
  • (B) Using @Input
  • (C) Using @Output
  • (D) Using services
πŸ’¬ Discuss
βœ… Correct Answer: (A) Using @ViewChild decorator
Explanation: @ViewChild gets a reference to child components or DOM elements.
Explanation by: Mr. Dubey
@ViewChild gets a reference to child components or DOM elements.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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