I have the following configuration for my form builder
this.fb.group({
id: [this.app.get('id'), []],
tips: new FormArray([new FormControl('')]),
})
I would like to update the size of tips, depending on the data that I am inserting into it during setValue() or patchValue(). If I have the following data
{
id: 123,
tips: [ 'Drink water', 'Exercise' ]
}
I would like the array to automatically expand. Does Angular have such a feature or do i have to check the size of the array and insert new controls into it ?