1.0.0 • Published 5 years ago

@iamproperty/vue-flash v1.0.0

Weekly downloads
2
License
UNLICENSED
Repository
-
Last release
5 years ago

Vue Flash

Usage

Install the package using yarn or npm.

yarn add @iamproperty/vue-flash

When setting up your Vuex store add the module as a top level module

import Vuex from 'vuex';
import { store } from '@iamproperty/vue-flash';

export default new Vuex.Store({
  modules: {
    old: store,
  }
})

and register the plugin after Vuex.

import Vue from 'vue';
import Vuex from 'vuex';
import Flash from '@iamproperty/vue-flash';

Vue.use(Vuex);
Vue.use(Flash);

If you register the store module to a different name you can use the installer function to register the plugin to the custom location.

import Vue from 'vue';
import Vuex from 'vuex';
import { installer } from '@iamproperty/vue-flash';

Vue.use(Vuex);
Vue.use(installer('custom/namespace'));