How can I merge item
and item-sliding
that are generated in a for loop?
Right now the first item is slideable and the item func2
gets is the last item. Weird…
<ion-list>
<ion-item-sliding>
<ion-item *ngFor="let item of items" (click)="func1(item)">
{{item.name}}<ion-badge item-right>{{item.name}}</ion-badge>
</ion-item>
<ion-item-options side="right" *ngFor="let item of items">
<button ion-button color="Danger" (click)="func2(item)">
<ion-icon name="text"></ion-icon>
Delete
</button>
</ion-item-options>
</ion-item-sliding>
</ion-list>