Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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'
 
PREVIOUS NEXT
Tagged: #current #template #vuejs
ADD COMMENT
Topic
Name
1+7 =