Having trouble passing my parent index to a nested ngFor in order to access an array of names like "name1, name2, etc."
<ion-item *ngFor="let b of banca ; let i = index">
<ion-select>
<ion-select-option *ngFor="let n of name + [i+1]" [value]="n">{{n}}</ion-select-option>
</ion-select>
</ion-item>
Error:
Cannot find a differ supporting object 'undefined1' of type 'string'. NgFor only supports binding to Iterables such as Arrays.
Have experimented with different combinations without success. Any guidance on the correct syntax for passing the value would be appreciated.
Thank you!