Answers for "limit in ngfor angular 4"

2

ngfor limit to 10

<li *ngFor="let item of list | slice:0:10; let i=index" class="dropdown-item" (click)="onClick(item)">{{item.text}}</li>
Posted by: Guest on June-05-2020
1

limit ngFor repeat to some specified items

*ngFor="let item of list | slice:0:10; let i=index"
Posted by: Guest on September-24-2020

Browse Popular Code Answers by Language