Last active
August 14, 2018 17:50
-
-
Save nirlanka/6230534799c70600349edb88a4ee0ad5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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]="addFriendForm" (ngSubmit)="send()"> | |
<div> | |
<label>Name</label> | |
<input type="text" formControlName="name"> | |
</div> | |
<div> | |
<label>Email</label> | |
<input type="text" formControlName="email"> | |
</div> | |
<div> | |
<button type="submit" [disabled]="!addFriendForm.valid">Submit</button> | |
</div> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment