Explorar o código

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
Thorsten Lünborg %!s(int64=8) %!d(string=hai) anos
pai
achega
6cefef28dd
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      docs/en/modules.md

+ 2 - 1
docs/en/modules.md

@@ -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 = {