I have an application behavior that returns an array of Task objects. How do we turn that into a FormArray again?
this.tasks = await this.httpClient.get('/api/myTasks').toPromise();
debug('this.tasks', this.tasks);
I have an application behavior that returns an array of Task objects. How do we turn that into a FormArray again?
this.tasks = await this.httpClient.get('/api/myTasks').toPromise();
debug('this.tasks', this.tasks);
You can use the form array constructor for you business object:
this.tasks = new TaskFormArray(await this.httpClient.get('/api/myTasks').toPromise() as TaskFormGroup[]);