I have a list and I would like to click in item and show icon checked only in item clicked
In ts I have the following code
selectDevice(device: any, i: any) {
this.devices[i];
this.mostrar = !this.mostrar;
}
and in my view I have
<ion-list>
<ion-item *ngFor="let device of devices; let i = index" (click)="selectDevice(device, i)" >
<img src="assets/images/wi-fi.png" alt="" class="wifi-img">
<ion-label>{{ device.SSID }}</ion-label>
<img src="assets/images/checked.png" *ngIf="mostrar || device[i]" alt="" class="checked-img">
</ion-item>
</ion-list>