I am currently working with a map that looks like this :
data() {
return {
secondarySkillHistory: {
"1": [1, 2, 4],
"5": [1, 7, 5]
}
};
},
My goal is to incorporate the array in key "1" into my v-model for a checkbox:
<input
type="checkbox"
:id="secondarySkill.catId"
:name="secondarySkill.catName"
:value="secondarySkill.catId"
v-model="secondarySkillHistory.1" <!-- doesn't seem to work -->
/>
Is there a way to achieve this task?