cgarvis / angular-toggle-switch

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

on-label and off-label doesn't work with angular 1.2.10 #16

Closed aardee closed 10 years ago

aardee commented 10 years ago

This is because ng-bind-html-unsafe is not not supported any more. Changing it to ng-bind-html worked but I am not sure if that is the correct solution or not...

cgarvis commented 10 years ago

I don't think this will work if you use icons. I have a solution that uses $sce.trustAsHtml but that seems like it would be security risk to make that default.

cgarvis commented 10 years ago

This is fixed in a542c12e87ad905dfd6a0e8059af1fe1193b1900. Release v0.3.0 is out as well.