Skip to content

Instantly share code, notes, and snippets.

@shamique
Created October 17, 2018 11:01
Show Gist options
  • Save shamique/f3878ff957cd1cb70d31c00cff3bd636 to your computer and use it in GitHub Desktop.
Save shamique/f3878ff957cd1cb70d31c00cff3bd636 to your computer and use it in GitHub Desktop.
<ion-header>
<ion-navbar>
<ion-title>
Ionic cognito app - Sign in
</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding>
<form (ngSubmit)="login()" #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">Login</button>
</ion-col>
</ion-row>
</form>
<ion-row>
<ion-col class="signup-col">
<button ion-button class="submit-btn" full type="submit" [navPush]="signUpPage">Sign Up</button>
</ion-col>
</ion-row>
</ion-content>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment