Answers for "how to always only take first three items in ngfor"

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

Code answers related to "how to always only take first three items in ngfor"

Browse Popular Code Answers by Language