Answers for "how to get current template in vuejs"

3

how to get current template in vuejs

//vue js gives you this as a global var
var current_document = this.$el;

//and
this.$el.querySelector('#color').InnerHTML = 'selected the element with color id in the current document'
Posted by: Guest on August-04-2021

Code answers related to "how to get current template in vuejs"

Code answers related to "Javascript"

Browse Popular Code Answers by Language