fix(backButton): able to hide back button if any back button attr set in navBar, closes #564

This commit is contained in:
Adam Bradley
2014-02-10 15:07:20 -06:00
parent de50ada209
commit 74a05a0338
2 changed files with 31 additions and 3 deletions

View File

@@ -95,7 +95,7 @@ angular.module('ionic.ui.viewState', ['ionic.service.view', 'ionic.service.gestu
if(tAttrs.type) tElement.addClass(tAttrs.type);
return function link($scope, $element, $attr) {
var canHaveBackButton = !(!tAttrs.backButtonType && !tAttrs.backButtonLabel);
var canHaveBackButton = !(!tAttrs.backButtonType && !tAttrs.backButtonLabel && !tAttrs.backButtonIcon);
$scope.enableBackButton = canHaveBackButton;
$rootScope.$on('viewState.showNavBar', function(e, showNavBar) {