Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vue store access state in actions

actions: {
  actionName ({ commit, state }, payload) {
    console.log(state)
  }
}
Source by vuex.vuejs.org #
 
PREVIOUS NEXT
Tagged: #vue #store #access #state #actions
ADD COMMENT
Topic
Name
1+4 =