[Vuejs]-How to save state of page even after reloading or closing the browser?

1👍

One way is to use local storage and check if the key exists once the page is loaded.

A cleaner way is to use vuex https://vuex.vuejs.org/ and a local storage plugin such as vuex persist.

Leave a comment