0Pricing
Angular Academy · Lesson

Typed Reactive Forms

Build forms with strict typing.

Why Typed Forms?

Before Angular 14, reactive form values were typed as any. Typed reactive forms give full type safety: the compiler knows the shape of your form value and control names.

A Typed FormControl

A FormControl is generic. Provide the value type so reads and writes are checked.

const name = new FormControl<string>('', {
  nonNullable: true
});

All lessons in this course

  1. Typed Reactive Forms
  2. FormArray and Dynamic Fields
  3. Async Validators
  4. FormBuilder Patterns
← Back to Angular Academy