control objects in component class A tree of Angular form control objects ==> Native form control elements Avoiding use of ngModel, required, etc Easier and expressive • Reactive patterns • Testing • Validation
the values of each child FormControl • formArrayName directive value matches with FormArray ngOnInit() { this.register = new FormGroup({ ... address: new FormArray([ new FormControl(''), ]) }) } TypeScript
`blur` or on `submit` • Can have control at the Form Control / Form level new FormGroup(value); new FormControl( value, [], [myValidator] ) Before new FormGroup(value, { updateOn: 'blur'}); new FormControl(value, { updateOn: 'blur', asyncValidators: [myValidator] }) After