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 ...
確定! 回上一頁