Closed jagabs closed 5 years ago
do you get any error? If you want to use this component in formarray, you can use example https://stackblitz.com/angular/odkjqqmqboy?file=src%2Fapp%2Fprofile-editor%2Fprofile-editor.component.html
you have to update value with index.
onSelect(item: any, i: number) { this.selectedItem = item; this.aliases.at(i).patchValue(item); }
its okay now, i accessed it manually in on select. expenseFormGroup.controls["expenseDirectoryName"].setValue(item.expenseDirectoryName); Thanks.
it is nice that the issue gets resolved.
do you get any error? If you want to use this component in formarray, you can use example https://stackblitz.com/angular/odkjqqmqboy?file=src%2Fapp%2Fprofile-editor%2Fprofile-editor.component.html
you have to update value with index.