@aventure-cloud/vuejs-local-storage-bridge

0.0.16 • Public • Published

Vuejs Local Storage Bridge

local-storage-bridge integration for VueJs applications.

See more details: @aventure-cloud/local-storage

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'));
    }
    
}

Readme

Keywords

none

Package Sidebar

Install

npm i @aventure-cloud/vuejs-local-storage-bridge

Weekly Downloads

1

Version

0.0.16

License

MIT

Unpacked Size

4.37 kB

Total Files

9

Last publish

Collaborators

  • valerione