I have a template calling a different component:
<question-container v-for="(question, index) in questions" :question="question" :answer="getFittingAnswer(question)"></question-container>
How can I update the :answer manually from the outer component? As :answer is dynamic based on data on a server and session data, in need the getFittingAnswer function.
Update: This is the getFittingAnswer component method.
getFittingAnswer(question) {
return this[`part${question.part}answers`].find(a => a.questionId == question.Id)
}