fix(ionView): make sure title is set correctly in edge cases

This commit is contained in:
Andrew Joslin
2014-05-09 08:31:19 -06:00
parent 4928b996d6
commit 4814a63bda

View File

@@ -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);
}
});