Skip to content

Instantly share code, notes, and snippets.

@CharlieGreenman
Created September 20, 2019 12:50
Show Gist options
  • Save CharlieGreenman/9a9dccb8ff09a01475e2b6cdaf272148 to your computer and use it in GitHub Desktop.
Save CharlieGreenman/9a9dccb8ff09a01475e2b6cdaf272148 to your computer and use it in GitHub Desktop.
<form [formGroup]="myForm">
<input type="text" formControlName="name">
<input type="email" formControlName="email">
<!-- Other related errors go here-->
<div *ngIf="myForm.get('email').errors && myForm.get('email').errors.emailUnavailable">
This email is already taken.
</div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment