Created
June 19, 2018 16:24
-
-
Save haverchuck/5796e9e0b67aedc4368ea649f03e1a93 to your computer and use it in GitHub Desktop.
ionic-amplify-part-1: list.page.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ion-header> | |
<ion-toolbar> | |
<ion-title *ngIf="user"> | |
{{user.username + '\'s list' }} | |
</ion-title> | |
<ion-buttons slot="end"> | |
<ion-button (click)="modify(null, null)">Add Item</ion-button> | |
</ion-buttons> | |
</ion-toolbar> | |
</ion-header> | |
<ion-content *ngIf="itemList"> | |
<ion-card *ngFor="let item of itemList.items; index as i"> | |
<ion-card-title class="hover card-title" (click)="modify(item, i)">{{item.title}}</ion-card-title> | |
<ion-card-content>{{item.description}}</ion-card-content> | |
<ion-card-subtitle> | |
<ion-buttons slot="end"> | |
<ion-button (click)="delete(i)"> | |
<ion-icon name="trash" size="small"></ion-icon>Delete</ion-button> | |
<ion-button (click)="complete(i)"> | |
<ion-icon name="checkmark-circle" size="small" [ngClass]="{'complete': item.status=='complete'}"></ion-icon>Mark Complete | |
</ion-button> | |
</ion-buttons> | |
</ion-card-subtitle> | |
</ion-card> | |
</ion-content> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment