diff --git a/js/angular/controller/navBarController.js b/js/angular/controller/navBarController.js index c5cfc61012..219cac5c86 100644 --- a/js/angular/controller/navBarController.js +++ b/js/angular/controller/navBarController.js @@ -103,7 +103,7 @@ function($scope, $element, $attrs, $ionicViewService, $animate, $compile, $ionic currentTitles = $element[0].querySelectorAll('.title'); if (currentTitles.length) { oldTitleEl = $compile('

')($scope); - jqLite(currentTitles[0]).replaceWith(oldTitleEl); + jqLite(currentTitles[currentTitles.length-1]).replaceWith(oldTitleEl); } //Compile new title newTitleEl = $compile('

')($scope);