cgarvis / angular-toggle-switch

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

adding isDisabled #55

Closed sgentile closed 9 years ago

sgentile commented 9 years ago

I updated the code to support isDisabled.

It properly passes a boolean value to the isDisabled as an optional parameter (=?). Since it's a boolean I changed the attrs.observe to scope.watch

is-disabled="true"

Also, this was using the outdated ngmin so instead I'm using ng-annotate

cgarvis commented 9 years ago

How is this better than the current version?

cgarvis commented 9 years ago

use ng-disabled to set disabled properly. Works in the latest release (1.2)