Skip to content

Instantly share code, notes, and snippets.

@shamique
Last active October 19, 2018 14:02
Show Gist options
  • Save shamique/832f02f08f18db37d0c04b09fed6a8e9 to your computer and use it in GitHub Desktop.
Save shamique/832f02f08f18db37d0c04b09fed6a8e9 to your computer and use it in GitHub Desktop.
<ion-header>
<ion-navbar>
<ion-title>
Ionic cognito app - Sign up
</ion-title>
</ion-navbar>
</ion-header>
<ion-content class="login-content" padding>
<div class="login-box">
<form (ngSubmit)="register()" #registerForm="ngForm">
<ion-row>
<ion-col>
<ion-list inset>
<ion-item>
<ion-input type="text" placeholder="Email" name="email" [(ngModel)]="email" required></ion-input>
</ion-item>
<ion-item>
<ion-input type="password" placeholder="Password" name="password" [(ngModel)]="password" required></ion-input>
</ion-item>
</ion-list>
</ion-col>
</ion-row>
<ion-row>
<ion-col class="signup-col">
<button ion-button class="submit-btn" full type="submit" [disabled]="!registerForm.form.valid">Register</button>
</ion-col>
</ion-row>
</form>
</div>
</ion-content>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment