3 <div *
ngIf=
"error" class=
"alert alert-danger">{{ error }}
</div>
5 <form role=
"form" (ngSubmit)=
"login()" [formGroup]=
"form">
6 <div class=
"form-group">
7 <label for=
"username">Username
</label>
9 type=
"text" class=
"form-control" id=
"username" placeholder=
"Username" required
10 formControlName=
"username"
12 <div *
ngIf=
"formErrors.username" class=
"alert alert-danger">
13 {{ formErrors.username }}
17 <div class=
"form-group">
18 <label for=
"password">Password
</label>
20 type=
"password" class=
"form-control" name=
"password" id=
"password" placeholder=
"Password" required
21 formControlName=
"password"
23 <div *
ngIf=
"formErrors.password" class=
"alert alert-danger">
24 {{ formErrors.password }}
28 <input type=
"submit" value=
"Login" class=
"btn btn-default" [disabled]=
"!form.valid">