1 <div *ngIf="error" class="alert alert-danger">{{ error }}</div>
3 <form role="form" (ngSubmit)="changePassword()" [formGroup]="form">
5 <label for="new-password">Change password</label>
7 type="password" class="form-control" id="new-password" placeholder="Old password"
8 formControlName="new-password"
10 <div *ngIf="formErrors['new-password']" class="alert alert-danger">
11 {{ formErrors['new-password'] }}
15 type="password" id="new-confirmed-password" placeholder="New password"
16 formControlName="new-confirmed-password"
19 <input type="submit" value="Change password" [disabled]="!form.valid">