Hello, I’m a bit stumped about this and I’d appreciate some help.
With this in my html:
<ion-toggle [(ngModel)]="AutoRefresh" (change)="onChange()" item-right></ion-toggle>
and this boolean in my js;
this.AutoRefresh = this._currentUserData.getAutoRefresh();
I was expecting this:
onChange() { console.log(this.AutoRefresh); }
To show true and false. It does not show anything. When I use the click event, true and false are showing up but there is a lag i.e. it is showing the last value of the boolean rather than the updated value from the click event.
I’m new to Ionic 2 so sorry if there’s a total misunderstanding built into this question!
Thanks.
Tom