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

IONIC 4: *ngIf directive is not working in IOS

$
0
0

I am developing an application in ionic and I have the following problem in IOS. In android it does not happen to me.

I have this line:

<ion-badge color="success" *ngIf="banderaflag"  style="position:absolute; left:50%; top:-75%" routerLink="/notificaciones">{{numeronotificaciones}}</ion-badge>

This banderaflag I declared like this.

banderaflag= false;

And here is the function I used for changing the banderaflag’s value:

notificacionescontar(){

   if( this.numeronotificaciones > 0){
this.banderaflag= true;

}else{
     this.banderaflag= false;

} }

In android, when banderaflag change from false to true, the ion-bagde tag appears perfectly. But in IOS dont.

In IOS.

enter image description here

In Android:

enter image description here

What Can i do?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 70440

Trending Articles



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