S
S
SeokkyN2018-08-06 02:54:13
Vue.js
SeokkyN, 2018-08-06 02:54:13

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

2 answer(s)
D
Dmitry Belyaev, 2018-08-06
@SeokkyN

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

I
Ivan, 2018-08-06
@LiguidCool

What prevents you from creating a Vue object as many times as you want?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question