M
M
Mad Coder2021-11-25 04:13:32
Vue.js
Mad Coder, 2021-11-25 04:13:32

How to navigate to another page after loading data in Vue?

Hello. For example, I have two pages. I need such functionality so that I click on the transition to the second page, but the transition from the first to the second itself occurred only when all the data on the second page was loaded from the server. That is, I click on the second page, there is some kind of loader, while the data is being loaded on the second page, but at that time I am still on the first one. As soon as the data has arrived and is ready for rendering, routing occurs. How to implement it correctly? Maybe there is already some ready-made module?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question