Created
July 8, 2014 21:04
-
-
Save ratbeard/2655811a397c361746f9 to your computer and use it in GitHub Desktop.
disable-ng-animate classNameFilter
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
| // This allows adding a class of `disable-ng-animate` to an element so that | |
| // $animate won't attempt to add its animation hooks. This is useful when an | |
| // element has animations applied via css classes, which can confuse | |
| // directives like ng-repeat and ng-show sometimes. | |
| app.config( [ | |
| '$animateProvider', | |
| function ($animateProvider) { | |
| $animateProvider.classNameFilter(/^((?!disable-ng-animate).)*$/) | |
| } | |
| ] ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried this, but I couldn't get it working. $animate seems to still be running on the element. Any suggestions?