1.0.4 • Published 7 years ago

vue-store2-plugin v1.0.4

Weekly downloads
16
License
ISC
Repository
github
Last release
7 years ago

Vue store2 plugin

This plugin is intended to add store2 library to Vue.prototype.$store so then it can be easily used in your Vue application.

Setup

Just add it as any other Vue plugin

// main.js

import Vue from 'vue';
import Store from 'vue-store2-plugin';

Vue.use(Store);

That is it, you are good to go!

Usage

// main.js

// ...

// Your application instance
new Vue({
    // ...
    created() {
        // Store info into localStoreage
        this.$store('app_loaded', true);
        
        // Load info from localStorage
        console.log(this.$store('app_loaded'));
        
        // More about how to use store() -> https://github.com/nbubna/store
    }
});
1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago