Also see #234
This commit is contained in:
Max Lynch
2013-11-29 09:29:30 -06:00
parent a4823f1a35
commit 6209e4d223
3 changed files with 9 additions and 2 deletions

View File

@@ -187,7 +187,7 @@ angular.module('ionic.ui.navRouter', ['ionic.service.gesture'])
backButtonIcon: '@',
alignTitle: '@'
},
template: '<header class="bar bar-header nav-bar" ng-class="{hidden: !navController.navBar.isVisible}">' +
template: '<header class="bar bar-header nav-bar" ng-class="{invisible: !navController.navBar.isVisible}">' +
'<div class="buttons"> ' +
'<button nav-back class="button" ng-if="enableBackButton && showBackButton" ng-class="backButtonType" ng-bind-html="backButtonContent"></button>' +
'<button ng-click="button.tap($event)" ng-repeat="button in leftButtons" class="button {{button.type}}" ng-bind="button.text"></button>' +
@@ -319,6 +319,10 @@ angular.module('ionic.ui.navRouter', ['ionic.service.gesture'])
// Should we hide a back button when this tab is shown
$scope.hideBackButton = $scope.$eval($attr.hideBackButton);
$scope.hideNavBar = $scope.$eval($attr.hideNavBar);
navCtrl.navBar.isVisible = !$scope.hideNavBar;
// Whether we should animate on tab change, also impacts whether we
// tell any parent nav controller to animate
$scope.animate = $scope.$eval($attr.animate);