I want to display data from database with the help of ngfor. I want to use ngif for implement some display condition .
my code :
<ion-grid *ngFor="let chat of ChatListArray"> <ion-row *ngIf="chat.status == 'Incoming'"> <ion-col > <div> {{chat.msg}} </div> </ion-col> </ion-row> <br> <ion-row *ngIf="chat.status == 'Outgoing'"> <ion-col > <div> {{chat.msg }} </div> </ion-col> </ion-row> </ion-grid> But its not working . how to use if statement properly please help.
{{chat.msg }} does not display any data. but outside the ngif its works.
My json array :

ChatListArraylooks like?