diff options
Diffstat (limited to 'src/ngAnimate/animate.js')
| -rw-r--r-- | src/ngAnimate/animate.js | 11 | 
1 files changed, 9 insertions, 2 deletions
| diff --git a/src/ngAnimate/animate.js b/src/ngAnimate/animate.js index fde8a7fa..f31932dc 100644 --- a/src/ngAnimate/animate.js +++ b/src/ngAnimate/animate.js @@ -263,9 +263,16 @@ angular.module('ngAnimate', ['ng'])        $rootElement.data(NG_ANIMATE_STATE, rootAnimateState); -      // disable animations during bootstrap, but once we bootstrapped, enable animations +      // disable animations during bootstrap, but once we bootstrapped, wait again +      // for another digest until enabling animations. The reason why we digest twice +      // is because all structural animations (enter, leave and move) all perform a +      // post digest operation before animating. If we only wait for a single digest +      // to pass then the structural animation would render its animation on page load. +      // (which is what we're trying to avoid when the application first boots up.)        $rootScope.$$postDigest(function() { -        rootAnimateState.running = false; +        $rootScope.$$postDigest(function() { +          rootAnimateState.running = false; +        });        });        function lookup(name) { | 
