Skip to content

Instantly share code, notes, and snippets.

@avatsaev
Last active February 9, 2017 23:46
Show Gist options
  • Save avatsaev/d7c3961943a9d5f8c773cdbe7ba33968 to your computer and use it in GitHub Desktop.
Save avatsaev/d7c3961943a9d5f8c773cdbe7ba33968 to your computer and use it in GitHub Desktop.
<form (ngSubmit)="onSignInSubmit()" #f="ngForm" >
<div class="row">
<div class="input-field col s12">
<input id="email"
type="email"
required
name='email'
[(ngModel)]="signInUser.email"
class="validate">
<label for="email">Email</label>
</div>
<div class="input-field col s12">
<input id="password"
type="password"
required
name='password'
[(ngModel)]="signInUser.password"
class="validate">
<label for="password">Password</label>
</div>
<div class="col s12 ">
<button type="submit"
[disabled]="!(f.valid)"
[ngClass]="{'disabled': !(f.valid)}"
class="waves-effect waves-light btn blue right"
>
Login </button>
</div>
</div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment