SHARE
TWEET

Untitled

a guest Oct 10th, 2016 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div [hidden]="submitted">
  2.     <h1>Login Form</h1>
  3.     <form *ngIf="!active" (ngSubmit)="onSubmit()" #loginForm="ngForm">
  4.         <div class="form-group">
  5.             <label for="username">Login</label>
  6.             <input type="text" class="form-control" id="username" name="username"
  7.                   placeholder="Login" required
  8.                   [(ngModel)]="credentials.username">
  9.         </div>
  10.         <div class="form-group">
  11.             <label>Password</label>
  12.             <input type="password" class="form-control" id="password" name="password"
  13.                   placeholder="Password"
  14.                   [(ngModel)]="credentials.password">
  15.         </div>
  16.         <button type="submit" class="btn btn-default" [disabled]="!loginForm.form.valid">Submit</button>
  17.     </form>
  18. </div>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top