Q. What Angular decorator is used to get a reference to a child component or DOM element?

  • (A) @ViewChild
  • (B) @Input
  • (C) @Output
  • (D) @ContentChild
πŸ’¬ Discuss
βœ… Correct Answer: (A) @ViewChild
Explanation: @ViewChild retrieves references from the template.
Explanation by: Mr. Dubey
@ViewChild retrieves references from the template.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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