Created
October 9, 2019 07:23
-
-
Save mphuget/81d18210dfcdfa4136175e30ab900484 to your computer and use it in GitHub Desktop.
home.page.html
This file contains 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-buttons slot="start"> | |
<ion-menu-button></ion-menu-button> | |
</ion-buttons> | |
<ion-title> | |
Todos List | |
</ion-title> | |
<ion-buttons slot="end"> | |
<ion-button routerLink="/add" routerDirection="forward"> | |
<ion-icon slot="icon-only" name="add-circle"></ion-icon> | |
</ion-button> | |
</ion-buttons> | |
</ion-toolbar> | |
</ion-header> | |
<ion-content> | |
<ion-list *ngFor="let todo of todos"> | |
<ion-item-sliding #item> | |
<ion-item> | |
{{todo.title}} | |
</ion-item> | |
<ion-item-options side="start"> | |
<button ion-button color="light" routerLink="/todo/{{todo._id}}">Done</button> | |
</ion-item-options> | |
<ion-item-options side="end"> | |
<button ion-button color="light" routerLink="/todo/{{todo._id}}">Edit</button> | |
<button ion-button color="danger" routerLink="/todo/{{todo._id}}">Delete</button> | |
</ion-item-options> | |
</ion-item-sliding> | |
</ion-list> | |
</ion-content> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment