I want to create a dynamic form which add Form Controls (a required form control) to a Form Array.
The Form Control is invalid because it needs to be filled by the user (it is blank)
But when I add the form control, I get an error
ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'ng-valid: true'. Current value: 'ng-valid:false'
in the console.
add(formControl) {
(this.formGroup.get('array') asFormArray).push(formControl)
}