Created
October 10, 2013 19:18
-
-
Save sbosell/6923938 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
element.bind('click', function (e) { | |
e.preventDefault(); | |
// tenemos que usar safeApply porque es posible que tengamos un conflicto con un digest. | |
// este nos ayuda evitar ese conflicto. | |
safeApply(scope, function () { | |
scope.isAnimated = !scope.isAnimated; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment