1
0
Эх сурвалжийг харах

concepts.md - include Vue.use(Vuex) call

J Bruni 9 жил өмнө
parent
commit
b3467572d9
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  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: { ... },