Angular 9 Formarray search operation executing for only first dynamic control
问题 I have a formarray with certain fields one of which is input. In this field, on user input, we search in the API's and return some data. The problem is, it is working only for first dynamic control. When I add more controls, it is not working for them. I guess this is happening because I have written search logic in ngAfterViewInit() . But what's the alternative then. I can't get how to solve this problem. Thank you In advance .ts purchaseform = this.fb.group({ vendor_mobile : ['',