search

Home  >  Q&A  >  body text

javascript - About communication between vue components

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

迷茫迷茫2804 days ago494

reply all(3)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-05-16 13:37:50

    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

    reply
    0
  • 天蓬老师

    天蓬老师2017-05-16 13:37:50

    Vuex or event bus

    reply
    0
  • 高洛峰

    高洛峰2017-05-16 13:37:50

    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

    reply
    0
  • Cancelreply