Skip to content

Instantly share code, notes, and snippets.

@benjamincharity
Created September 8, 2015 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benjamincharity/ac1bbf99e27e87b7079c to your computer and use it in GitHub Desktop.
Save benjamincharity/ac1bbf99e27e87b7079c to your computer and use it in GitHub Desktop.
Disable ngAnimate for a specific element.
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