Created
September 3, 2019 05:30
-
-
Save anantl05/40278fe026094ef7317e2419aa7a045a to your computer and use it in GitHub Desktop.
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 [formGroup]="signUpForm"> | |
<table> | |
<tr> | |
<td> | |
<label>Username:</label> | |
</td> | |
<td> | |
<input name="username" type="text" formControlName="username"> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<label>Password:</label> | |
</td> | |
<td> | |
<input name="password" type="password" id="pass" formControlName="password" #pass> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<label>Confirm Password:</label> | |
</td> | |
<td> | |
<input name="confirmPassword" type="password" formControlName="conPassword"> | |
</td> | |
<td *ngIf="!allControls.conPassword.errors?.equal && allControls.conPassword.touched"> | |
Password doesn't match | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<p> | |
<button (click)="submitData()">Submit</button> | |
</p> | |
</td> | |
</tr> | |
</table> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment