0👍
Your data.repeatOn
should define with unique name at HTML like
<input type="checkbox" id="1" value="1" v-model="data.repeatOn[1]" :checked="data.repeatOn.includes('1')"><label for="1">Monday</label>
<input type="checkbox" id="2" value="2" v-model="data.repeatOn[2]" :checked="data.repeatOn.includes('2')"><label for="2">Tuesday</label>
//... data.repeatOn[n]
and at data
data() {
return {
data : {
repeatOn : []
}
}
},
- [Vuejs]-Avoid deleting parent table data while it is being used in child table
- [Vuejs]-How to pass selected item to api vujes
Source:stackexchange.com