I can update a FormControl inside of FormGroup like this:
form.setControl('happyControl',
new FormControl('happy value', Validators.required)
);
But inside of a FormArray, I can't edit picked FormControl.
In myForm controls > FormArray > FormGroup, I can't set the control. My code is like this:
let firstFormGroup = form.controls.myFormArrayControl.controls;
firstFormGroup[0].setControl('happyControl',
new FormControl('sad value', Validators.minlength(2))
);
How can I access and update the control?
firstFormGroup[0].setControl('happyControl'...
? – R. Richards