Skip to content

Commit ac4af79

Browse files
committed
Added AnimationEnd event
This event will trigger when the animation on the ui-view is done animating.
1 parent 5e88789 commit ac4af79

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/viewDirective.js

+2
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ function $ViewDirective( $state, $injector, $uiViewScroll) {
210210

211211
var clone = $transclude(newScope, function(clone) {
212212
renderer.enter(clone, $element, function onUiViewEnter() {
213+
currentScope.$emit('$viewContentAnimationEnded');
214+
213215
if (angular.isDefined(autoScrollExp) && !autoScrollExp || scope.$eval(autoScrollExp)) {
214216
$uiViewScroll(clone);
215217
}

0 commit comments

Comments
 (0)