cgarvis / angular-toggle-switch

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

Custom text for toggles #3

Closed arusanov closed 11 years ago

arusanov commented 11 years ago
  1. Added custom text for toggles
  2. class 'switch-animate' added when toggle clicked to prevent animation in initial state
cgarvis commented 11 years ago

AngularJS uses 2 spaces for tabs. Can you change your changes to use 2 spaces?

arusanov commented 11 years ago

Ok, i'll correct and open pull request again

Hypercubed commented 11 years ago

I'm using this... except:

1) I think you need to use =? or =?attr in order to flag the properties as optional. 2) I don't know why you use =attr instead of just = when the attribute name is the same as the local name. 3) I added a knobLabel.