How can I give the index of my array days, in the v-model ?
<select v-model="dayList" id="dayList">
<option v-for="(day, index) in days" :key="index">{{ selectDaysLabel(day) }}</option>
</select>
And:
dayList(index) {
console.log(index) // should give you either 0, 1, 2...
}
Thank you for your help !