Skip to content

Instantly share code, notes, and snippets.

@haverchuck
Created June 19, 2018 16:27
Show Gist options
  • Select an option

  • Save haverchuck/4aae4e6ceb9f0d5c72c2e2a2dcb6d679 to your computer and use it in GitHub Desktop.

Select an option

Save haverchuck/4aae4e6ceb9f0d5c72c2e2a2dcb6d679 to your computer and use it in GitHub Desktop.
ionic-amplify-part-1: list.item.modal.html
<ion-header>
<ion-toolbar>
<ion-title>{{editItem ? 'Edit' : 'Create'}} Item</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<ion-list lines="true">
<ion-item>
<ion-label color="primary">ToDo Title </ion-label>
<ion-input placeholder="title" [(ngModel)]="item.title"></ion-input>
</ion-item>
<ion-item>
<ion-label color="primary">ToDo Description </ion-label>
<ion-input placeholder="description" [(ngModel)]="item.description"></ion-input>
</ion-item>
</ion-list>
</ion-content>
<ion-footer>
<ion-button class="save-btn" (click)="save()">Save</ion-button>
<ion-button class="dismiss-btn" (click)="cancel()">Cancel</ion-button>
</ion-footer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment