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'
Are there any code examples left?
New code examples in category Javascript