Angular 2 Forms
summary
Explains concrete differences between FormControl/FormGroup/FormArray usage with reactive code (FormBuilder, setValue/patchValue) and template-driven directives (ngModel, ngForm), shows reactive forms stay synchronous and explicit while template forms run asynchronously, demos two identical forms side-by-side, implements a custom password-matcher validator on the group and a ControlValueAccessor switch control that toggles newsletter and works with both modules, live-codes in WebStorm and the demo functions as shown.
AI-written summary · about
