Looping using ngFor and skipping the nth element

I was wondering if there is a way in angular2 to iterate over an array or list using *ngFor and skip the first or nth element

+7
source share
1 answer
 <div *ngFor="let item of items; let i=index"> <div *ngIf="i != n">{{i}} is not n</div> </div> 
+13
source

Source: https://habr.com/ru/post/1264529/


All Articles