Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230844

Condition Alert with NgFor

$
0
0

I want to achieve a popup if i get a null on my ngfor

    <ion-select interface="popover" [ngModel]="selectedKidId">
      <ion-option *ngFor="let kid of kids" [value]="kid.id">{{kid.name}}</ion-option>
    </ion-select>
  </ion-item>

This will show me a list of kids name, i want to get a pop up if there is no kid on the list. is there a way to do it ?

and instead of the list i’ll get a popup or a call to a modal.

Thank you


Viewing all articles
Browse latest Browse all 230844

Trending Articles