Created
September 8, 2015 13:02
-
-
Save benjamincharity/ac1bbf99e27e87b7079c to your computer and use it in GitHub Desktop.
Disable ngAnimate for a specific element.
This file contains 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
function disableAnimate($animate) { | |
'ngInject'; | |
return { | |
restrict: 'A', | |
link: function($scope, $element) { | |
$animate.enabled($element, false); | |
}, | |
}; | |
} | |
export default disableAnimate; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment