0👍
It’s possible to access component template with vmComponent.options.template
.
A template can be declared as a string for reuse:
export const template = `...`;
const vmComponent = Vue.component('VueComponent', {
template,
...
});
This may not work with pre-compiled templates.
- [Vuejs]-How to keep track of an array change in Vue.js when the index is a dynamic value?
- [Vuejs]-Cache misses for lazy loaded resources (using dynamic imports)
Source:stackexchange.com