fix(titles): error during quick transition changes

This commit is contained in:
Adam Bradley
2014-09-16 10:23:49 -05:00
parent 60b3f861f1
commit fe9f43d17f

View File

@@ -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);