Please check the below code.
<tr>
<td>Select Timeslot</td>
<td colspan="2">
<select class="form-control" v-on:change="onTimeSlotClick">
<option v-for="slot of slots">
<label slot.time_from - slot.time_to</label>
</option>
</select>
</td>
</tr>
I want to pass slot object to onTimeSlotClick method. How can I do that?
I tried something like onTimeSlotClick(slot) but getting undefined in onTimeSlotClick method.