How can I use a checkbox with a v-model in Vue2.js?
<input type="checkbox" value="test" :checked="selected"/>
I need the value of the checkbox to be test
, and I also require two-way binding with the prop named selected
, which is a boolean. The current setup only supports one-way binding. How can I adjust this?
Appreciate any help, thank you.