问题
I was wondering if there is a way in angular2 to loop through an array or a list using *ngFor
and skip the first or nth element
回答1:
<div *ngFor="let item of items; let i=index">
<div *ngIf="i != n">{{i}} is not n</div>
</div>
来源:https://stackoverflow.com/questions/42372560/looping-using-ngfor-and-skip-nth-element