javascript - About communication between vue components
迷茫
迷茫 2017-05-16 13:35:50
0
3
491

Now I want to pass the variables in a vue to another vue file for calling. How to do

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(3)
给我你的怀抱
  1. Father to son: props

  2. From son to father: Custom event emit

  3. Brother components: event bus or vuex

  4. Of course, parameters in routing may also be used

Peter_Zhu

Vuex or event bus

小葫芦

First of all, you need to understand the relationship between these two components. Then make a choice. The answer on the first floor is enough. For the specific situation, I will give you a portal, a portal

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template