@aventure-cloud/vuejs-local-storage-bridge
v0.0.16
Published
local-storage-bridge integration for VueJs applications
Downloads
13
Readme
Vuejs Local Storage Bridge
local-storage-bridge integration for VueJs applications.
See more details: @aventure-cloud/local-storage
- Author: Valerio Barbera - [email protected]
- Author Website: www.aventuresrl.com
Install
npm install --save @aventure-cloud/vuejs-local-storage-bridge
Integrate
import ls from '@aventure-cloud/vuejs-local-storage-bridge';
Vue.use(ls, {
resetOnLoad: true|false,
prefix: 'myappname_'
});
Use
Inside your vuejs components:
export default {
mounted() {
this.$localStorage.set('users', [
{
first_name: 'Valerio',
last_name: 'Barbera'
},
{
first_name: 'Sebastiano',
last_name: 'Sicignano'
}
]);
console.log(this.$localStorage.get('users'));
}
}