fix(title): use defined viewTitle attrs

This commit is contained in:
Adam Bradley
2014-11-23 01:01:40 -06:00
parent beb45c17e8
commit 72167b2a45
2 changed files with 60 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ function($scope, $element, $attrs, $compile, $ionicViewSwitcher) {
if (transData && !transData.viewNotified) {
transData.viewNotified = true;
var viewTitle = $attrs.viewTitle || $attrs.title;
var viewTitle = isDefined($attrs.viewTitle) ? $attrs.viewTitle : $attrs.title;
var buttons = {};
for (var n in navElementHtml) {