V
V
Vanya Huk2017-07-10 22:58:30
Vue.js
Vanya Huk, 2017-07-10 22:58:30

How to pass data to child in vue.js?

How to pass data to child in vue.js?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem0071, 2017-07-10
@vanyahuk

Through props
Parent:

<child-component 
   :firstProp="firstProp"    // передаем параметр
</child-component>

Child:
props: ['firstProp'] // получаем параметр

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question