Answer the question
In order to leave comments, you need to log in
How to implement the history of the application in Vue.js?
Good afternoon.
Can you tell me how you can implement the historicity of SPA?
I mean not only for the router (history-mode), but also the storage of the states of other components.
For example, there is a sign, we return, the page on which the user was, the selection that the user left, the value of the filters, and so on, is saved there.
I understand that you can put the history in LocalStorage and, depending on the page and its components, give them saved states. While I think in this vein.
Are there any other approaches?
Answer the question
In order to leave comments, you need to log in
keep-alive
https://ru.vuejs.org/v2/api/#keep-alive
<keep-alive>
<router-view />
</keep-alive>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question