I am making a course evaluation form, I have question components inside of it like this:
<question v-for="(question,index) in questions"
:questionText="question.questionText"
:question-index="++index"
ref="questions"> </question>
each question has radio button and a result field connected with v-modal. I want to submit the result for each question to firebase database.
I need to either access the result from evaluation-form (parent) or have a submit function in question component and call it to make each question submit its data.
I tried refs but I failed, I also find events quite hard, what is the easiest way?
inputevent, you can bind the result viav-model. See vuejs.org/v2/guide/components.html#Using-v-model-on-Components