Skip to content

Commit 4814a63

Browse files
committed
fix(ionView): make sure title is set correctly in edge cases
1 parent 4928b99 commit 4814a63

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: js/angular/directive/view.js

+3
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ IonicModule
5454
$attr.$observe('title', function(val, oldVal) {
5555
if (val !== initialTitle) {
5656
navBarCtrl.setTitle(val);
57+
} else {
58+
//Safety to make sure the navbar's title is correct
59+
navBarCtrl.setTitle(initialTitle);
5760
}
5861
});
5962

0 commit comments

Comments
 (0)