[Vuejs]-Is it possible to use Single File Vue Components in premade html files

0👍

Yep. https://v2.vuejs.org/v2/guide/installation.html#Direct-lt-script-gt-Include

<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<div id="foo"></div>
new Vue({
    el: "#foo",
    template: `<span>Hello world!</span>`
})

0👍

Yes, it is, but there are some disadvantages using this approach for big projects. You can read more here. For a small size project, you can use Vue.component and render using css selectors creating a Vue instance. You can check this here

Leave a comment