Skip to content

Commit

Permalink
fix(ionView): make sure title is set correctly in edge cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoslin committed May 9, 2014
1 parent 4928b99 commit 4814a63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/angular/directive/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});

Expand Down

0 comments on commit 4814a63

Please sign in to comment.