fix(ionView): make it set navbar if title changes back to old value

Fixes #1121
This commit is contained in:
Andrew Joslin
2014-05-09 08:43:15 -06:00
parent 4814a63bda
commit 919d4f8dca
4 changed files with 19 additions and 9 deletions

View File

@@ -52,6 +52,9 @@ function($scope, $element, $attrs, $ionicViewService, $animate, $compile, $ionic
};
this.setTitle = function(title) {
if ($scope.title === title) {
return;
}
$scope.oldTitle = $scope.title;
$scope.title = title || '';
};