I am trying to get the canvas element which is inside a template of a component, found great documentations for vuejs1 but not for vuejs2 where "ref" is the only w
The created is fired before the template is processed. You can find more details here: https://vuejs.org/v2/guide/instance.html#Lifecycle-Diagram
created
You should be able to access the $refs on the mounted event
mounted
mounted: function() { console.log(this.$refs.icanvas); },