Answer the question
In order to leave comments, you need to log in
How to get HTMLElement in component?
There is a DOM element in the component template:
<div class="container" #main></div>
How can I get an HTMLElement reference to this element from the component?
How should I use the concept @ViewChild("main", {static: false})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question