As [items] is containing an array of values that i believe have indexes those i want to retrieve so i can further use them. this is my html code for it. please help me find the index of selected value
i read about it from here. Actually i was in need of an ion-select with search bar but couldn’t find something like that so i used it. also i’m new to ionic so i thought someone could guide me well.
If you would have a look at the GitHub Repo you would see that the “$event” is not the item itself. What is the output of console.log(item);? It should hava a value key, so you have to use item.value in the indexOf function