B
B
beduin012017-02-26 16:21:20
Vue.js
beduin01, 2017-02-26 16:21:20

How to organize template loading in Vue.js?

As I understand it, all one-pagers load all templates at once and switch them already in the browser.

I want to make some of the pages exist on the server and be loaded on request (when you click on a link), for example / about and a file is loaded from the directory:
/html/about/index.html

I can't figure out how to adequately implement this? Do I have to initialize each taco directory as a separate entity in Vue? Or is there a better way to do it all?

One of the goals is that the pages physically exist on the server and the routing is not virtual, but real.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2017-02-26
@SPAHI4

https://www.google.ru/search?q=vue+lazy+load+components

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question