| fun-with-forms | Introduction to the angular reactive forms feature |
- We have seen how to start using angular reactive forms by incorporating
ReactiveFormsModule - We have constructed instances of
FormControlto manage specific fields - We have connected the input elements to the managing
FormControlusing the[FormControl]directive - We have grouped the form controls into a single
FormGroupand used its method and properties to collectively manage all the form controls together - We have used the css classes
ng-valid,ng-invalid,ng-touched,ng-dirtyto highlight invalid fields. - We have used the
validandinvalidproperties of the form group to control the ability to submit the data - We have used the
.valueproperty to get the value of a form control, or a complete object. - We have used the
.errorsproperty to present error information to the user - We have seen how to create nested objects using a nested
FormGroup - We have seen how to create custom validators and custom async validators