How To Display The Index Data In A *ngFor?
I have the following html in my angular application
Solution 1:
You get the index in your *ngFor
loop, like this:
*ngFor="let elem of elements; let i = index"
Then, just use i
wherever you need the index.
Post a Comment for "How To Display The Index Data In A *ngFor?"