how to get current template in vuejs

Solutions on MaxInterview for how to get current template in vuejs by the best coders in the world

showing results for - "how to get current template in vuejs"
Lucille
17 Jun 2016
1//vue js gives you this as a global var
2var current_document = this.$el;
3
4//and
5this.$el.querySelector('#color').InnerHTML = 'selected the element with color id in the current document'