Juan R Labrada

Note Details
OVERLINE
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)

For these use cases using localStorage, sessionStorage, and IndexedDB
LocalStorage
IndexedDB
Using WebstorageAPI
localStorage
sessionStorage

Rate this note
Comment
Comments
Back to Notes