Skip to content

Commit

Permalink
add getter key to module example code
Browse files Browse the repository at this point in the history
Since we can have getters in modules, the example code should reflect that. Here, someone already got confused by their absence: vuejs#336
  • Loading branch information
LinusBorg authored Sep 25, 2016
1 parent cff1eb9 commit 6cefef2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/en/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ To help with that, Vuex allows us to divide our store into **modules**. Each mod
const moduleA = {
state: { ... },
mutations: { ... },
actions: { ... }
actions: { ... },
getters: { ... }
}

const moduleB = {
Expand Down

0 comments on commit 6cefef2

Please sign in to comment.