mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(ionView): make sure title is set correctly in edge cases
This commit is contained in:
3
js/angular/directive/view.js
vendored
3
js/angular/directive/view.js
vendored
@@ -54,6 +54,9 @@ IonicModule
|
||||
$attr.$observe('title', function(val, oldVal) {
|
||||
if (val !== initialTitle) {
|
||||
navBarCtrl.setTitle(val);
|
||||
} else {
|
||||
//Safety to make sure the navbar's title is correct
|
||||
navBarCtrl.setTitle(initialTitle);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user