A
A
Artem Mikhnevich2019-05-01 14:48:05
Vue.js
Artem Mikhnevich, 2019-05-01 14:48:05

How to remove extra downloads in vue router?

The crux of the matter is that I have a main page, well, for example

localhost:3000

And there is a path in Vue Router :
localhost:3000/prelaunch

When I go to /prelaunch , my main page loads.
Is it possible to download only what I have on this route without too much?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-05-01
@timartinov

in the root component in the template, use
router-view
and assign your own component to each route and then only it will be rendered

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question