V
V
vetsmen2017-10-16 15:18:25
JavaScript
vetsmen, 2017-10-16 15:18:25

Vue.js, rest api and routing?

Good day. If a rest api service that provides data for the application.
How to properly do routing in vue.js in order to preserve the reactive view (as well as the transition between pages), and at the same time, when receiving get requests like site.ru/news, site.ru/panel, etc, immediately display the desired component?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Michael, 2017-10-16
@vetsmen

vue-router

A
Alexander Gamov, 2017-10-16
@slowdream

Just keep all the actual data in vuex

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question