Skip to content

simpl-e/vue-state-localstorage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vue2 manejo genérico del state con localStorage

// Guardar en `store.state` y `localStorage.setItem`, y hacer reactivo en Vue
window.store.set("item", item);
// Obtener de `store.state` o `localStorage.getItem`
window.store.get("item");
// Obtener de `store.state` solo (ignorar localStorage)
window.store.state.item;

About

Vue2 generic state management with localStorage

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published