Use animation only when user clicks
I am using the angular-toggle-switch in my application in a settings dialog. The user can select from a menu to go between panels. I have noticed that when a panel is shown with the toggle switch on it, and the initial value in ng-model is false, the toggle switch animates from on to off. Is it possible to make it so that it shows the "off" value without animation when it's a model change, and with animation when the user clicks to change it?
Animation is handle via classes. It has to start somewhere before the switch-off and switch-on classes are applied. Not sure of a solution.
Faced the same problem. Any solutions? Thanks.
Same problem here. On template load, the switch animate to current model state. Would be nice to only animate on click event not on init.
I am also facing the same problem. I am using the switch in a form and the initial value is false and the switch animates on initialization. Would be nice if it only animates once the user clicks on it.