@@ -94,7 +94,7 @@ function $ViewDirective( $state, $compile, $controller, $injector, $ui
94
94
if ( viewIsUpdating ) return ;
95
95
viewIsUpdating = true ;
96
96
97
- try { updateView ( ) ; } catch ( e ) {
97
+ try { updateView ( true ) ; } catch ( e ) {
98
98
viewIsUpdating = false ;
99
99
throw e ;
100
100
}
@@ -104,7 +104,7 @@ function $ViewDirective( $state, $compile, $controller, $injector, $ui
104
104
$scope . $on ( '$stateChangeSuccess' , eventHook ) ;
105
105
$scope . $on ( '$viewContentLoading' , eventHook ) ;
106
106
107
- updateView ( ) ;
107
+ updateView ( false ) ;
108
108
109
109
function cleanupLastView ( ) {
110
110
if ( currentEl ) {
@@ -118,7 +118,7 @@ function $ViewDirective( $state, $compile, $controller, $injector, $ui
118
118
}
119
119
}
120
120
121
- function updateView ( ) {
121
+ function updateView ( shouldAnimate ) {
122
122
var locals = $state . $current && $state . $current . locals [ name ] ;
123
123
124
124
if ( isDefault ) {
@@ -130,7 +130,7 @@ function $ViewDirective( $state, $compile, $controller, $injector, $ui
130
130
cleanupLastView ( ) ;
131
131
currentEl = element . clone ( ) ;
132
132
currentEl . html ( initial ) ;
133
- anchor . after ( currentEl ) ;
133
+ renderer ( shouldAnimate ) . enter ( currentEl , parentEl , anchor ) ;
134
134
135
135
currentScope = $scope . $new ( ) ;
136
136
$compile ( currentEl . contents ( ) ) ( currentScope ) ;
0 commit comments