diff --git a/dist/js/ionic-angular.js b/dist/js/ionic-angular.js index a0b5acc139..7d89c1a5fa 100644 --- a/dist/js/ionic-angular.js +++ b/dist/js/ionic-angular.js @@ -1534,10 +1534,11 @@ angular.module('ionic.ui.navRouter', ['ionic.service.gesture']) } // Clone the old title and add a new one so we can show two animating in and out + // add ng-leave and ng-enter during creation to prevent flickering when they are swapped during animation title = angular.element(titles[0]); - oTitle = $compile('

')($scope); + oTitle = $compile('

')($scope); title.replaceWith(oTitle); - nTitle = $compile('

')($scope); + nTitle = $compile('

')($scope); var insert = $element[0].firstElementChild || null; diff --git a/js/ext/angular/src/directive/ionicNavRouter.js b/js/ext/angular/src/directive/ionicNavRouter.js index ac952af1c4..265765a639 100644 --- a/js/ext/angular/src/directive/ionicNavRouter.js +++ b/js/ext/angular/src/directive/ionicNavRouter.js @@ -159,10 +159,11 @@ angular.module('ionic.ui.navRouter', ['ionic.service.gesture']) } // Clone the old title and add a new one so we can show two animating in and out + // add ng-leave and ng-enter during creation to prevent flickering when they are swapped during animation title = angular.element(titles[0]); - oTitle = $compile('

')($scope); + oTitle = $compile('

')($scope); title.replaceWith(oTitle); - nTitle = $compile('

')($scope); + nTitle = $compile('

')($scope); var insert = $element[0].firstElementChild || null;