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

Ion-toggle change event not working

$
0
0

@icarus_31 wrote:

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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



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