Initialize Form Group Array with Json Data


it is possible to initialize a form group array with json data?

this is in my constructor:

and the normal json data is no problem but i can not set a for or something like that in the array

this is how my array, json looks like:

is there a Solution?



okay got it:


I think directly accessing the controls array is a bad idea. I’ve made many subtle bugs for myself doing that, and now always use get().


Can you please Post a demo Code?


Just replace .controls['options'] with .get('options').