Skip to content

Instantly share code, notes, and snippets.

@NandoKstroNet
Created August 7, 2018 15:05
Show Gist options
  • Save NandoKstroNet/84217c83bf9261807501bd9f7cd04217 to your computer and use it in GitHub Desktop.
Save NandoKstroNet/84217c83bf9261807501bd9f7cd04217 to your computer and use it in GitHub Desktop.
Ionic page para uso em nosso projeto Ionic com Firebase do site ionichero.com
<!--
Generated template for the SavePage page.
See http://ionicframework.com/docs/components/#navigation for more info on
Ionic pages and navigation.
-->
<ion-header>
<ion-navbar>
<ion-title>Edição de Curso</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding>
<ion-list>
<ion-item>
<ion-label fixed>Title</ion-label>
<ion-input type="text" [(ngModel)]="course.title"></ion-input>
</ion-item>
<ion-item>
<ion-label fixed>Preço</ion-label>
<ion-input type="text" [(ngModel)]="course.price"></ion-input>
</ion-item>
<ion-item>
<ion-label fixed>Descricao</ion-label>
<ion-input type="text" [(ngModel)]="course.description"></ion-input>
</ion-item>
<button ion-button full (click)="update(course)">Atualizar Curso</button>
<button ion-button full color="danger" (click)="remove(course)">Remover Curso</button>
</ion-list>
</ion-content>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment