installing vuex
snippet in javascript

installing vuex

user1688

npm install vuex --save

// then in your store.js
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex);