Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Enable vue script:
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
in your js file just Vue.component('component name', {
})
https://ru.vuejs.org/v2/guide/components.html
Read here, or did I not understand the question?
You can insert the template as <script type="text/x-template">
https://ru.vuejs.org/v2/guide/components-edge-case... , like this: https://codepen.io/anon/pen/oMWNrm
Removing to separate files through the attribute src
works .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question