M
M
Maxim Zolotoy2019-04-16 21:50:40
Vue.js
Maxim Zolotoy, 2019-04-16 21:50:40

How to get data from VUE descendant components?

For example, there is such a code

<formComponent>
    <inputComponent></inputComponent>
    <inputComponent></inputComponent>
    <inputComponent></inputComponent>
    <inputComponent></inputComponent>
    <inputComponent></inputComponent>
</formComponent>

How to get the necessary data from each inputComponent (their number can be any) from the formComponent parent component by clicking on the button. In theory, I need to get the validation status and value (text inside the input)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2019-04-16
@spacenear

You need to use ref

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question