Skip to content

Instantly share code, notes, and snippets.

@polterguy
Last active February 21, 2021 08:06
Show Gist options
  • Save polterguy/5312b16f7abc9326038965d79c2f4820 to your computer and use it in GitHub Desktop.
Save polterguy/5312b16f7abc9326038965d79c2f4820 to your computer and use it in GitHub Desktop.
Angular login dialogue
<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