DEV Community

Discussion on: Building scalable robusts and type safe forms with Angular

Collapse
 
elvispdosreis profile image
Elvis P dos Reis

following the example
stackblitz.com/edit/ngx-sub-form-b...
I need to put all the controls inside a single component in the "FormArray", however I didn't understand how to access the "compartment.formControlNames.deck"

screen

Collapse
 
maxime1992 profile image
Maxime

Hi Elvis, I think all you need to do is change FormControlName for deck and size to a simple FormControl to witch you'd pass the compartment.

If you provide a minimal repro on stackblitz I may help you out