Relative Content

Tag Archive for angularformgroupsangular17

Angular Reactive Forms: Validate that Nested FormArray is Not Empty and Show mat-error

I am working with Angular’s reactive forms and have a nested structure where I need to validate that a FormArray of files within another FormArray is not empty. Specifically, each groupFiles can have multiple groups, and each group contains a FormArray of files. I need to display a mat-error message if any group’s files array is empty.