Skip to content

Instantly share code, notes, and snippets.

@zkkmin
Created October 12, 2018 23:48
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 zkkmin/3da82102545222663df1b61afbb1b32b to your computer and use it in GitHub Desktop.
Save zkkmin/3da82102545222663df1b61afbb1b32b to your computer and use it in GitHub Desktop.
Form group control in login component template
<section class="hero ">
<div class="hero-body">
<div class="container">
<div class="column is-8 is-offset-2">
<div>
<h3 class="title has-text-grey">Login</h3>
<p class="subtitle has-text-grey">Please login to proceed.</p>
<div class="box">
<div class="notification is-danger" [hidden]="!error">
"Unable to log in with provided credentials."
</div>
<form [formGroup]="form">
...
...
<button class="button is-block is-info is-large is-fullwidth" (click)="login()">Login</button>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment