From 4814a63bda911d7274dce40b5402518e1acfe4f7 Mon Sep 17 00:00:00 2001 From: Andrew Joslin Date: Fri, 9 May 2014 08:31:19 -0600 Subject: [PATCH] fix(ionView): make sure title is set correctly in edge cases --- js/angular/directive/view.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/angular/directive/view.js b/js/angular/directive/view.js index 4c3deb7672..f687c9749c 100644 --- a/js/angular/directive/view.js +++ b/js/angular/directive/view.js @@ -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); } });