Answers for "angular ngfor first 3 items"

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
0

angular get first element ngfor

<md-button-toggle *ngFor="let indicador of indicadores; let first = first;" [value]="indicador.id" [checked]="first">
Posted by: Guest on March-08-2021

Browse Popular Code Answers by Language