Kindly review the following code snippet.
<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 am looking to pass the slot
object to the onTimeSlotClick
method. How can I achieve this?
I attempted using onTimeSlotClick(slot)
but it seems to return undefined
in the onTimeSlotClick
method.