You can take advantage of the index property of *ngFor
<div *ngFor="let item of list; let i = index;">
<div *ngIf="item == list[i-1]"></div>
<div *ngIf="item == list[0]"></div>
</div>
You can find more info on *ngFor local variables in the docs: https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html