Closed EgidioCaprino closed 10 years ago
Did you give the toggle switch a model
? There are some examples at http://cgarvis.github.io/angular-toggle-switch/
Yes, I do it in this way.
<toggle-switch data-ng-model="currentAlbum.isActive" on-label="Si" off-label="No"><toggle-switch>
But when I try to switch it I get the error above.
use just data-model
. I haven't made it so that it integrates with ng-model
.
Thank you :)
What about CSS? Do I have to include the one from the original Bootstrap Switch plugin? I ask because the style of the toggle is this one.
There is a angular-toggle-switch.css
that does basic styling. There is also a angular-toggle-switch-bootstrap.css
that will give you bootstrap 2 styling.
Thank you :)
unfortunately, I hit the same error because the documentation references to an "ng-model" attribute. In fact, it only takes "data-model" into account.
Same for me.
Hi.
I'm unable to use this module. I get this error when I try to change the status of the switcher.
I included the angular-toggle-switch.js file and added the module to my app in this way.
Where I'm wrong?