Skip to content

Instantly share code, notes, and snippets.

@armache
Last active February 9, 2025 13:47
Show Gist options
  • Save armache/1e4bef46eff3c1bb0c3698b6c6663110 to your computer and use it in GitHub Desktop.
Save armache/1e4bef46eff3c1bb0c3698b6c6663110 to your computer and use it in GitHub Desktop.
Personal Details component
<form [formGroup]="form" (ngSubmit)="submit()">
<mat-form-field>
<mat-label>First Name</mat-label>
<input matInput formControlName="firstName" />
</mat-form-field>
<mat-form-field>
<mat-label>Last Name</mat-label>
<input matInput formControlName="lastName" />
</mat-form-field>
<section>
<h2>Address</h2>
<app-address [addressForm]="form"></app-address>
</section>
<br /><br />
<button mat-raised-button type="submit" color="primary">Submit</button>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment