I'm trying to select all textarea
in one web page.
Is there a way to get all these elements in one single query and loop over them to add to each one a listener using the Renderer2 renderer.listen
in order to implement a vertical auto expand of the textarea
whenever I add text.
if I use @viewchild, I have to add manually a different template reference variable for each of them.
is it possible to have something similar to getElementsByTagName in angular and avoid direct access to DOM ?