Please use below code for HTML file :
<ion-list>
<ion-item-sliding #item>
<ion-item>
Item
</ion-item>
<ion-item-options side=”right” (ionSwipe)=”logSwipe($event)”>
<button ion-button (click)=”archive(item)”>
<ion-icon name=”archive”></ion-icon>
Archive
</button>
</ion-item-options>
</ion-item-sliding>
</ion-list>
Use below code for TS file :
logSwipe(e){
console.log(e);
}
Great post.
ReplyDeletehttps://www.behance.net/virohaa1