Answer the question
In order to leave comments, you need to log in
Is it possible to create multiple parent components in Vue.js?
I want to have a parent component for each page of the site (each of which has an individual template), in which I would include child components for it. Is it possible? If not, what are the alternatives? Thank you.
Answer the question
In order to leave comments, you need to log in
First, look in the direction of vue-router
. In its documentation, you can find about dynamic import
. In addition, the entry point is hardly app.vue, rather it is some kind of .js file that imports app.vue, if you want to handle it all with handles .
And finally, the same webpack allows you to have multiple entry points and even set your own config for each
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question