Using Angular 1.5.3, is it possible to globally disable ng-animate and then selectively enable it on some elements?
I have a directive (ng-animate-enabled
) used to enable ng-animate on the container div
and it's children.
If I globally disable ng-animate in the controller via $animate.enabled(false)
, the animations no longer work even though I am specifically enabling them via the directive mentioned above.
This jsfiddle illustrates the problem.
Thanks!