Skip to content

Instantly share code, notes, and snippets.

@anytizer
Last active October 20, 2022 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anytizer/8d480ed5c297826017458cd602129c55 to your computer and use it in GitHub Desktop.
Save anytizer/8d480ed5c297826017458cd602129c55 to your computer and use it in GitHub Desktop.
Login form with [(ngModel)]
<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>&nbsp;</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