How To Display The Index Data In A *ngfor? February 02, 2024 Post a Comment 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. Share Post a Comment for "How To Display The Index Data In A *ngfor?"
Post a Comment for "How To Display The Index Data In A *ngfor?"