mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(titles): error during quick transition changes
This commit is contained in:
2
js/angular/controller/navBarController.js
vendored
2
js/angular/controller/navBarController.js
vendored
@@ -103,7 +103,7 @@ function($scope, $element, $attrs, $ionicViewService, $animate, $compile, $ionic
|
||||
currentTitles = $element[0].querySelectorAll('.title');
|
||||
if (currentTitles.length) {
|
||||
oldTitleEl = $compile('<h1 class="title" ng-bind-html="oldTitle"></h1>')($scope);
|
||||
jqLite(currentTitles[0]).replaceWith(oldTitleEl);
|
||||
jqLite(currentTitles[currentTitles.length-1]).replaceWith(oldTitleEl);
|
||||
}
|
||||
//Compile new title
|
||||
newTitleEl = $compile('<h1 class="title invisible" ng-bind-html="title"></h1>')($scope);
|
||||
|
||||
Reference in New Issue
Block a user