May be this is something already been solved. I tried may things, But i wanted to know the best way to get this to work.
<ion-toggle item-right [(modelName)]="stored.check" (ionChange)="saveDataToLocal()"></ion-toggle>
Stored.check is set from a promise. What happens is that when the promise resolves after the page load, ionChange function is executed. This is not a change initiated by the user. This happens because the value is set. I want to make sure that the change event runs only for user initiated events.
How can we fix this?