How do I add a field to a reactive form that can dynamically add and delete to a type string array? The implementation I have right now is a FormArray, however it adds to the array as a object rather that just another string in the array. (see code below)
ngOnInit() {
this.form = this.formBuilder.group({
user: '',
directory: '',
filename: this.formBuilder.array([ this.createItem() ])
});
}
createItem(): FormGroup {
return this.formBuilder.group({
filename: ''
});
}