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

Explanation: @ViewChild allows querying a template element or directive.

Explanation by: Mr. Dubey
@ViewChild allows querying a template element or directive.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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