i just started learning angular 2 and ionic, so I'll keep it brief:
<ion-card class="acc-page-card" *ngFor="let account of accounts">
<ion-card-content>
<!-- Add card content here! -->
<ion-item (click)="GoTo('AccountPage')">
<div class="acc-img" item-left>
<img src="{{account.img}}" alt="">
</div>
<div class="acc-details">
<span class="name">{{account.title}}</span>
<span class="title">{{account.link}}</span>
</div>
<div class="acc-icons" item-right>
<i *ngIf="valueFromArray" class="icomoon-Add-user-icon"></i>
<i *ngIf="valueFromArray" class="icomoon-Favorites-icon"></i>
</div>
</ion-item>
</ion-card-content>
</ion-card>
where 'valueFromArray' represents the value I want to extract from the array I am iterating through. I attempted:
<i *ngIf="{{account.isFriend}}" class="icomoon-Add-user-icon active-icon"></i>
and it was completely incorrect. How can I properly utilize a value from the array I am looping through in a scenario like this? Apologies for my poor English.