Created
July 4, 2017 11:29
-
-
Save Hitman666/09556a02be13c419698bceab357b8ff5 to your computer and use it in GitHub Desktop.
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-navbar> | |
<ion-title> | |
Ionic Blank | |
</ion-title> | |
</ion-navbar> | |
</ion-header> | |
<ion-content> | |
<ion-item> | |
<ion-input [(ngModel)]="todo" placeholder="Insert some todo here here" type="text"></ion-input> | |
</ion-item> | |
<button ion-button full (click)="add()">ADD</button> | |
<ion-list> | |
<ion-item-sliding *ngFor="let t of todos"> | |
<ion-item> | |
{{t}} | |
</ion-item> | |
<ion-item-options side="right"> | |
<button ion-button color="danger" (click)="delete(t)"> | |
<ion-icon name="trash"></ion-icon> 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