hello, guys, I want to know a thing is possible or not as described below
supposed have I have 3 thing
illustration of frontend
<td><input type="checkbox" v-model="named[0]></td>
<td><input type="checkbox" v-model="named[1]></td>
<td><input type="checkbox" v-model="named[2]></td>
fruit list | checkbox
----------------------------
apple | checkbox -> if this clicked passed true else pass false
mango | checkbox -> if this clicked passed true else pass false
orange | checkbox -> if this clicked passed true else pass false
suppose user clicked apple and orange checkbox and clicked on submit then v-model named should have array value like this 0:true 1:false 3:true is this possible in vue
var fruitsFromDatabase = ...; // get the fruits from the database
var named = fruitsFromDatabase.map(function(item) {
return {
name: item.name,
selected: false
};
});