Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70432

How to display a div, using *ngif else within a array in ionic4

$
0
0

@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'">
        &#8226; {{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

Read full topic


Viewing all articles
Browse latest Browse all 70432

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>