Answer the question
In order to leave comments, you need to log in
Is it possible to listen to an event in a component and change the native element?
My component uses a pure JS class that creates DOM elements and returns them to the template by reference:
@ViewChild("layersContainer", { static: true }) layersContainer: ElementRef;
<div class="Layers" #layersContainer></div>
new DomBuilderJs(this.layersContainer);
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