Skip to content

Commit 6cefef2

Browse files
authored
add getter key to module example code
Since we can have getters in modules, the example code should reflect that. Here, someone already got confused by their absence: #336
1 parent cff1eb9 commit 6cefef2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/en/modules.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ To help with that, Vuex allows us to divide our store into **modules**. Each mod
88
const moduleA = {
99
state: { ... },
1010
mutations: { ... },
11-
actions: { ... }
11+
actions: { ... },
12+
getters: { ... }
1213
}
1314

1415
const moduleB = {

0 commit comments

Comments
 (0)