cgarvis / angular-toggle-switch

AngularJS Toggle Switch
http://cgarvis.github.io/angular-toggle-switch
MIT License
160 stars 124 forks source link

Question: Is there a event handle on change in angular-toggle-switch? #61

Closed peterhe2000 closed 9 years ago

peterhe2000 commented 9 years ago

There was a event on-change in release 0.5.2? I could not get this happening in release 1.2.1?

cgarvis commented 9 years ago

Currently you use a watch on your model.

peterhe2000 commented 9 years ago

Depending on the id the switch gives to a function I will change something. How do i watch multiple switches and react on there ids in my model? Thanks in advance.

twalling commented 9 years ago

I have a PR which adds support for ng-change.

cgarvis commented 9 years ago

ng-change has been added to in 1.3.0