Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 1x | <div class="login" fxLayout="row" fxLayoutAlign="center center">
<mat-card>
<mat-card-header fxLayoutAlign="center center">
<mat-card-title>Login</mat-card-title>
</mat-card-header>
<form class="login-form" [formGroup]="form" (ngSubmit)="submit()">
<mat-card-content fxLayout="column">
<mat-form-field fxFlex>
<input matInput placeholder="Email" formControlName="email">
</mat-form-field>
<mat-form-field fxFlex>
<input matInput [type]="hide ? 'password' : 'text'" placeholder="Password"
formControlName="password">
<button mat-icon-button matSuffix (click)="hide = !hide" [attr.aria-label]="'Hide password'"
[attr.aria-pressed]="hide">
<mat-icon>{{hide ? 'visibility_off' : 'visibility'}}</mat-icon>
</button>
</mat-form-field>
</mat-card-content>
<button mat-raised-button color="primary" type="submit" [disabled]="form.invalid">Submit</button>
<p *ngIf="onError" class="error">An error occurred</p>
</form>
</mat-card>
</div> |