Last active
February 21, 2021 08:06
-
-
Save polterguy/5312b16f7abc9326038965d79c2f4820 to your computer and use it in GitHub Desktop.
Angular login dialogue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1 mat-dialog-title>Login</h1> | |
<div mat-dialog-content> | |
<mat-form-field> | |
<mat-label>Username</mat-label> | |
<input | |
matInput | |
[(ngModel)]="username"> | |
</mat-form-field> | |
<mat-form-field> | |
<mat-label>Password</mat-label> | |
<input | |
matInput | |
[(ngModel)]="password" | |
placeholder="Password"> | |
</mat-form-field> | |
</div> | |
<div mat-dialog-actions> | |
<button | |
mat-button | |
(click)="login()">Login</button> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment