Browse Source

Merge pull request #69 from jbruni/patch-4

concepts.md - include Vue.use(Vuex) call
Evan You 9 năm trước cách đây
mục cha
commit
3c02f36490
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      docs/en/concepts.md

+ 3 - 0
docs/en/concepts.md

@@ -21,8 +21,11 @@ Why do we differentiate between *mutations* and *actions*, rather then just simp
 Creating a Vuex store is pretty straightforward - just put the aforementioned ingredients together:
 
 ``` js
+import Vue from 'vue'
 import Vuex from 'vuex'
 
+Vue.use(Vuex)
+
 const store = new Vuex.Store({
   state: { ... },
   mutations: { ... },