Skip to content

aventure-cloud/vuejs-local-storage-bridge

Repository files navigation

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

About

local-storage-bridge integration with VueJs framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published