Back to Notes
How to use localStorage with VueJS
Sometimes you need to keep values stored locally, for example:
- to prevent data loss due to network failures.
- to keep unfinished editing for a long time (example, this editor)
- to exchange data between different pages without sending it to the server(implementing a shopping cart)
Rate this note