mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(ionView): make it set navbar if title changes back to old value
Fixes #1121
This commit is contained in:
3
js/angular/controller/navBarController.js
vendored
3
js/angular/controller/navBarController.js
vendored
@@ -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 || '';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user