I have an ionic vue select which I am populating with an array and using a v-for to loop through the data. I want to pass the selected value when I open the select menu and click OK. Instead of that 5 being passed on I want to pass whatever value is selected in the v-for in this case whatever value is in drop[1]
I want to pass that into my emitData
function. Below is my code:
<template>
<ion-list>
<ion-item>
<ion-select @ionChange="emitData(5)" id="" placeholder="Select Topic">
<ion-select-option aria-checked="true" v-for="drop in dropData" v-bind:key="drop[1]" :value="drop[1]">{{ drop[0] }}</ion-select-option>
</ion-select>
</ion-item>
</ion-list>
Is there a way to achieve this?