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

Ion-toggle change event not working

$
0
0

Hi,

I would like to know why the "change" event is not triggered when changing the toggle state. What am I missing?

html

<ion-item>
  <ion-label>Toggle state</ion-label>
  <ion-toggle [(ngModel)]="theSate" (change)="stateChange($event)" [checked]="_bState" yellow></ion-toggle>
</ion-item>

ts

stateChange(event) {
  do something
}

Thanks


Viewing all articles
Browse latest Browse all 231638

Trending Articles



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