diff --git a/js/angular/controller/navBarController.js b/js/angular/controller/navBarController.js index 087a964318b..1e8da8cbd09 100644 --- a/js/angular/controller/navBarController.js +++ b/js/angular/controller/navBarController.js @@ -48,7 +48,7 @@ function($scope, $element, $attrs, $compile, $timeout, $ionicNavBarDelegate, $io ionic.DomUtil.cachedAttr(containerEle, 'nav-bar', isActive ? 'active' : 'cached'); var alignTitle = $attrs.alignTitle || $ionicConfig.navBar.alignTitle(); - var headerBarEle = jqLite('').addClass($attrs.class).attr('align-title', alignTitle); + var headerBarEle = jqLite('').addClass($attrs['class']).attr('align-title', alignTitle); if (isDefined($attrs.noTapScroll)) headerBarEle.attr('no-tap-scroll', $attrs.noTapScroll); var titleEle = jqLite('
'); var navEle = {};