J
J
Jan2020-02-10 17:28:45
Vue.js
Jan, 2020-02-10 17:28:45

How to properly build a vue project from different components?

Good day gentlemen!

There is a set of components (for example, Header, Content, Footer), but there are different versions of these components (they differ in styles, layout and texts)

The question is how to properly organize the loading of the components I need when building a project?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Aetae, 2020-02-10
@Yancheg

Just use alias , putting down the path of the required component at the build stage.

A
Alex, 2020-02-10
@Kozack Vue.js

https://en.vuejs.org/v2/guide/single-file-component...
https://en.vuejs.org/v2/guide/components-dynamic-a...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question