@vgnjt wrote:
I try to use *ngif and else to pass a false to boolean.The ngif is working but the else can not display the message. Hope some will help me.
<div *ngFor="let nameList of nameList"> <ion-row class="cont-text" *ngIf="nameList?.alertType ==='new'; else havedata === 'false'"> • {{nameList?.description}} from {{NameList?.creationDate | date : 'dd MMM yyyy'}}<br> </ion-row> </div> <div *ngIf="haveData === 'false'"> <ion-row class="cont-text">No Problem is captured</ion-row> </div>
Posts: 1
Participants: 1