M

Mr. Dubey • 100.28K Points
Coach

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
  • Correct Answer - Option(A)
  • Views: 10
  • Filed under category Angular

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics