Skip to content

Commit ea58140

Browse files
simplesmilerktsn
authored andcommitted
docs: Clarify example with namespaced actions (#1361)
1 parent 3a5e530 commit ea58140

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/guide/modules.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ computed: {
209209
},
210210
methods: {
211211
...mapActions([
212-
'some/nested/module/foo',
213-
'some/nested/module/bar'
212+
'some/nested/module/foo', // -> this['some/nested/module/foo']()
213+
'some/nested/module/bar' // -> this['some/nested/module/bar']()
214214
])
215215
}
216216
```
@@ -226,8 +226,8 @@ computed: {
226226
},
227227
methods: {
228228
...mapActions('some/nested/module', [
229-
'foo',
230-
'bar'
229+
'foo', // -> this.foo()
230+
'bar' // -> this.bar()
231231
])
232232
}
233233
```

0 commit comments

Comments
 (0)