πŸ“Š Angular
Q. Which of the following is used to get a reference to a DOM element in a component?
  • (A) @ViewChild
  • (B) @ContentChild
  • (C) @Input
  • (D) @Output
πŸ’¬ Discuss
βœ… Correct Answer: (A) @ViewChild

Explanation: @ViewChild allows access to a child element or component instance in the template.

Explanation by: Mr. Dubey
@ViewChild allows access to a child element or component instance in the template.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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