JumpLink / angular-toggle-switch

AngularJS Toggle Switch
http://jumplink.github.io/angular-toggle-switch/
MIT License
68 stars 37 forks source link

inverse #13

Open ilanCambium opened 9 years ago

ilanCambium commented 9 years ago

Hello, I am trying to replace between the On and Off. How can I do it?

Thanks

lampapetrol commented 9 years ago

I had the same issue and made this work (angular 1.4.4) by combining "toggle-switch" with a "negate" directive, both sharing the ngModel attribute. http://stackoverflow.com/questions/13925462/angularjs-reverse-checkbox-state/22529753#22529753 (it works even if we have no checkbox field)