Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const moduleExample = {
- namespaced: true,
- modules:{
- },
- state: {
- moduleTest: 'test'
- },
- mutations: {
- exampleMutation(state){
- }
- },
- getters: {
- exampleGetter(state, getters, rootState, rootGetters){
- console.log('hello module test')
- }
- },
- //To use root actions and commits, pass { root: true } to 3rd argument of a commit or dispatch
- actions: {
- exampleAction({ dispatch, commit, getters, rootGetters}){
- }
- },
- }
Add Comment
Please, Sign In to add comment