Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nirlanka/6230534799c70600349edb88a4ee0ad5 to your computer and use it in GitHub Desktop.
Save nirlanka/6230534799c70600349edb88a4ee0ad5 to your computer and use it in GitHub Desktop.
<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