R
R
richrichwx2018-09-26 07:14:34
Vue.js
richrichwx, 2018-09-26 07:14:34

How to split the code into separate files?

There is a component of the main account, inside the component there are 3 screens, each of the screens has its own styles and functions. All this in one component.
How to properly split the code into separate files?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danny Chase, 2018-09-26
@Dase23

select layouts (header, footer, sidebar ...etc) and move them into separate components.
each of the three screens is also taken out into separate components.
And just as a constructor to collect them in the desired file.
https://ru.vuejs.org/v2/guide/components-registrate...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question