Răsfoiți Sursa

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 8 ani în urmă
părinte
comite
6cefef28dd
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  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 = {
 const moduleA = {
   state: { ... },
   state: { ... },
   mutations: { ... },
   mutations: { ... },
-  actions: { ... }
+  actions: { ... },
+  getters: { ... }
 }
 }
 
 
 const moduleB = {
 const moduleB = {