How to get dom element in ionic2


#1

I know I can do document.getElementById() stuff

is this a recommended way to do it?


#2

Usually, you don’t need it. But you could use ElementRef or your code.