I have created a nested form group using form array and used the form array as a datasource for mat-table.
After that, I am using the idMaterial formcontrol to show the mat-autocomplete.I have tried to create dynamic template reference variable for mat-autocomplete. But, it shows undefined instance error.
Here is my try:
ts

html

Please help me in fixing this issue. Thanks in advance.