How do I dynamically name radio buttons?
<tr v-for="user in users">
<td>
<input type="radio" :name="groups_[[ user.id ]]" v-bind:value="photographer" v-bind:checked="user.group.name == photographer"> <label>photographer</label>
<input type="radio" :name="groups_[[ user.id ]]" v-bind:value="client" v-bind:checked="user.group.name == client"> <label>client</label>
</td>
</tr>
Upon implementing the code above, an error message appears:
The property or method "groups_" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option.