@iamproperty/vue-flash
v1.0.0
Published
Use Laravel flashed input in Vue.
Downloads
2
Readme
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'));