Hi,
I am able to fetch data from api and it is properly displaying in list item, when I search from serachbar.
But I want to fill searchbar when I clicked a particular displayed ion item list.
How do I get value of clicked ion-item list.
Is this possible in Ionic?
Here is my code:
<ion-searchbar [(ngModel)]="searchText" (ionInput)="search($event)" #id1 placeholder="">
</ion-searchbar>
<ion-list>
<ion-item *ngFor="let stations of stationlist" >
{{stations.v}}
</ion-item>
</ion-list>