Angular 22 · Routing and forms

Bind a reactive form

Connect the form group to the template and submit it.

<form [formGroup]="form" (ngSubmit)="submit()">
  <input formControlName="email">
  <button [disabled]="form.invalid">Submit</button>
</form>

Official Angular 22 documentation

More routing and forms commands

All routing and forms commands · Angular 22 cheatsheet

Was this page helpful?