Angular: Get current index in ngFor

后端 未结 4 1174
失恋的感觉
失恋的感觉 2021-01-04 12:05

I have following angular:

{{item}}
4条回答
  •  隐瞒了意图╮
    2021-01-04 12:40

    You can create your own directive to get the current index on every function call through *ngFor. You can follow this answer.

提交回复
热议问题