I've got an array of items in which I'm comparing a user id of the current element vs the previous one. When I try this code, it results in a blank page with no errors:
<ion-item *ngFor="let message of messages; let i = index;">
<div *ngIf="message.user_id !== messages[i-1].user_id"></div>
</ion-item>
Can you not access array indexes in the template this way?
[0]because[i-1]will be[-1]which doesn't exist