How to 'show more' rows using *ngFor

后端 未结 3 710
轻奢々
轻奢々 2021-01-14 17:27

I have the following code (simplified in head - not tested)

{{ item.i
3条回答
  •  無奈伤痛
    2021-01-14 17:42

    Another approach using the SlicePipe:

    {{ item }}

    Also, use of instead of in with *ngFor.

提交回复
热议问题