I have a template code like this:
<img id ="canvas" src="../images/carsimage.jpg" />
I am trying to pass this element to a function by making something like getElementById in javascript. But I am getting an error with 'this.$.canvas'
initDraw(this.$.canvas);
initDraw(canvas) {
}