We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b557526 commit c125278Copy full SHA for c125278
docs/en/actions.md
@@ -103,6 +103,19 @@ const vm = new Vue({
103
104
Now the action will be bound as `vm.plus` instead of `vm.incrementBy`.
105
106
+If an action is specific to a component, you can take the shortcut and just define it inline:
107
+
108
+``` js
109
+const vm = new Vue({
110
+ vuex: {
111
+ state: { ... },
112
+ actions: {
113
+ plus: ({ dispatch }) => dispatch('INCREMENT')
114
+ }
115
116
+})
117
+```
118
119
Finally, if you simply want to bind all the actions:
120
121
``` js
0 commit comments