πŸ“Š Angular
Q. How can you access a child component's properties and methods in Angular?
  • (A) Using @ViewChild decorator
  • (B) Using @Input decorator
  • (C) Using event binding
  • (D) Using services
πŸ’¬ Discuss
βœ… Correct Answer: (A) Using @ViewChild decorator

Explanation: @ViewChild gets a reference to a child component or element in the template.

Explanation by: Mr. Dubey
@ViewChild gets a reference to a child component or element in the template.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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