Answer the question
In order to leave comments, you need to log in
How to register a Vue body component using a template from a file?
O Comrades!
I have this code, written according to all the canons of Soviet structuring and Chinese Feng Shui.
import Vue from 'vue'
import App from './App.vue'
import contentPanelTemp from './components/contentPanel.vue'
Vue.component('contentPanel', contentPanelTemp)
new Vue({
el: '#app',
render: h => h(App),
components: {
}
})
components: {
sovietComponent: {
temlate: '<h1>Привет, Жопа ежа</h1>'
}
}
Answer the question
In order to leave comments, you need to log in
So you haven't tried it?
new Vue({
el: '#app',
render: h => h(App),
components: {
contentPanelTemp
}
})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question