Q. Which of the following is used to get a reference to a DOM element in a component?
β
Correct Answer: (A)
@ViewChild
Explanation: @ViewChild allows access to a child element or component instance in the template.