Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created June 9, 2017 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/dba633aed88800eb7555646233a941f1 to your computer and use it in GitHub Desktop.
Save matthieu-D/dba633aed88800eb7555646233a941f1 to your computer and use it in GitHub Desktop.
<ion-list>
<ion-item-sliding *ngFor="let item of items; let idx = index;">
<button ion-item>
<h2>{{item.category}}</h2>
<p>{{item.description}}</p>
</button>
<ion-item-options>
<button ion-button color="danger" (click)="deleteTask(item, idx)">DELETE</button>
</ion-item-options>
</ion-item-sliding>
</ion-list>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment