Almost every app needs to collect input from users, and input needs checking before it is trusted. Angular ships with a forms library in @angular/forms that tracks values, validity, and user interaction for you, with two approaches to choose from: template-driven and reactive forms.
It starts with template-driven forms, which rely on ngModel and directives in the template, and reactive forms, which define the form in your component class with FormControl, FormGroup, and FormBuilder. From there it covers validation: the built-in Validators, custom validator functions, and showing error messages based on control state such as touched and invalid.
Some of these videos were recorded for earlier Angular versions, so they may show FormsModule and ReactiveFormsModule imported through NgModules where newer code imports them directly into standalone components. The ideas behind forms and validation are the same. Watch the lessons in order, then continue on to HTTP, Observables & RxJS.
Compares ways to build forms in Angular: plain template references, template-driven forms, reactive forms, and FormBuilder, and how template-driven and reactive approaches differ.
A broad guide to both form types, covering validations and dynamic forms.
Shows how to validate input in both reactive forms and template-driven forms.
Form validation with reactive forms, including custom validators and regex pattern validation.