Last active
October 20, 2022 19:19
-
-
Save anytizer/8d480ed5c297826017458cd602129c55 to your computer and use it in GitHub Desktop.
Login form with [(ngModel)]
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
<form name="login"> | |
<p> | |
<label>Username</label> | |
<input class="w3-input" type="text" name="username" [(ngModel)]="login.username" placeholder="Username" /> | |
</p> | |
<p> | |
<label>Password</label> | |
<input class="w3-input" type="text" name="password" [(ngModel)]="login.password" placeholder="Password" /> | |
</p> | |
<p> | |
<label> </label> | |
<span class="w3-button w3-indigo" (click)="action.login()">Login</span> | |
</p> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment