1.3.0 • Published 8 years ago
vue-reactivestorage v1.3.0
vue-reactivestorage
Reactive layer for interacting with localStorage from Vue. Plugin for Vue 2.
why
window.localStorage
cannot be reactive if you use it directly with Vue, ex
Code above will not react, even bind to view. So...
how to use
Define vars that will be stored and proxied by Vue
(any other var in window.localStorage
that is not on this array will not be proxied).
Now you can acess the namespace localStorage in Vue.
1.3.0
8 years ago