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
- Typed Reactive Forms
- FormArray and Dynamic Fields
- Async Validators
- FormBuilder Patterns