I am trying to get the index of the outer *ngFor in the nested *ngFor. Attaching the code below:
<div *ngFor="let st of s;let i = index">
<span *ngFor="let indexnumber of i"> </span> //i is the index of above *ngFor
</span>
{{st}}
</div>
What I get on doing this is an error: Cannot find a differ supporting object '1' of type 'number'. NgFor only supports binding to Iterables such as Arrays.
How can I achieve this scenario?