Answer the question
In order to leave comments, you need to log in
Vue 3 - how to read data from a slave?
Good afternoon. There is a desire but no idea how to read data from child components.
For example, there is such a thing
<parent>
<child></child>
<child></child>
</parent>
Answer the question
In order to leave comments, you need to log in
1) Throw a callback
2) Use $emit from child
3) store data globally (use vuex)
Do you want vuex? Make a separate state object with reactive api and use it in both parent and child
Thanks everyone, I figured it out myself.
<parent >
<child ref="row-1"></child>
<child ref="row-2"></child>
</parent>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question