S
S
senefu2017-07-11 23:23:49
Vue.js
senefu, 2017-07-11 23:23:49

What is the easiest way to pass data from component to component?

How to pass data from child to child?
I have this in component #1

data () {
    return {
      msg: 'Message from Component №1'
    }
  }

How to pass it to Component 2?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Kulakov, 2017-07-11
@senefu

Who is it?) The standard way to pass from a parent component to a child component is to use props:
https://ru.vuejs.org/v2/guide/components.html#Transfer...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question