VueJS provides compile method which is used to compile a template string into a render function. This method is only available in the full build.
For example, you can compile template message:
1 2 3 4 5 6 7 8 9 | var result = Vue.compile('<div><span>{{ msg }}</span></div>') new Vue({ data: { msg: 'Welcome to Vue world' }, render: result.render, staticRenderFns: result.staticRenderFns }) |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.