I'm trying to get the li element to display {{info.email}} USER ON THIS DEVICE only if localStorage variable matches.I need it inside the li element as this data is coming from the database. Can anyone shed some light on how to achieve this ?
<ul>
<li *ngFor="let info of infos" (click)="personTapped($event, info);" *ngIf="(window.localStorage.getItem('userLoggedIn') === info.email)"> {{info.username}} (USER ON THIS DEVICE)
</li>
</ul>