@ajaykdutta wrote:
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 == 'Incomming'"> <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.
Posts: 1
Participants: 1