Guest User

Untitled

a guest
Nov 20th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. export const moduleExample = {
  2. namespaced: true,
  3. modules:{
  4. },
  5. state: {
  6. moduleTest: 'test'
  7. },
  8. mutations: {
  9. exampleMutation(state){
  10.  
  11. }
  12. },
  13. getters: {
  14. exampleGetter(state, getters, rootState, rootGetters){
  15. console.log('hello module test')
  16. }
  17. },
  18. //To use root actions and commits, pass { root: true } to 3rd argument of a commit or dispatch
  19. actions: {
  20. exampleAction({ dispatch, commit, getters, rootGetters}){
  21.  
  22. }
  23. },
  24. }
Add Comment
Please, Sign In to add comment