Created
April 13, 2016 04:59
-
-
Save lricoy/878515f79315fd80a2c8a8528dbffaf1 to your computer and use it in GitHub Desktop.
Login form Ionic2
This file contains hidden or 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-content> | |
<ion-list> | |
<form [ngFormModel]="loginForm" (submit)="onLogin($event)"> | |
<ion-item> | |
<ion-label floating primary>Email</ion-label> | |
<ion-input ngControl="email" type="text" #email="ngForm" required> | |
</ion-input> | |
</ion-item> | |
<control-messages control="email"></control-messages> | |
<ion-item> | |
<ion-label floating primary>Password</ion-label> | |
<ion-input ngControl="password" type="password" #password="ngForm" required> | |
</ion-input> | |
</ion-item> | |
<control-messages control="password"></control-messages> | |
<ion-row responsive-sm> | |
<ion-col> | |
<button type="submit" primary block>Entrar</button> | |
</ion-col> | |
</ion-row> | |
</form> | |
</ion-list> | |
</ion-content> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment