When I use :checked
, it works. But if I add v-model
, it does not work.
<div v-for="answer in the_data[current].answers" id="answers">
<p>
<input
type="radio"
name="answer"
:id="answer"
:value="answer"
v-model="the_answer"
v-bind:checked="answer == 'girl'"
>
@{{ answer }}
</p>
</div>
I need to use v-model