Created
November 8, 2021 22:15
-
-
Save christianhanvey/58a84b57b8bd62ce67596baf757a99b9 to your computer and use it in GitHub Desktop.
AngularJS Prevent-Animations directive
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
angular | |
.module('utilities') | |
.directive('preventAnimations', ['$animate', function ($animate) { | |
return { | |
restrict: 'A', | |
link: function (scope, element, attrs) { | |
$animate.enabled(element, false); | |
} | |
}; | |
}]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment