mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
2
js/ext/angular/src/directive/ionicNavBar.js
vendored
2
js/ext/angular/src/directive/ionicNavBar.js
vendored
@@ -144,6 +144,7 @@ function($scope, $element, $attrs, $ionicViewService, $animate, $compile, $ionic
|
||||
|
||||
this.showBar = function(show) {
|
||||
$scope.isInvisible = !show;
|
||||
$scope.$parent.$hasHeader = !!show;
|
||||
};
|
||||
|
||||
this.setTitle = function(title) {
|
||||
@@ -290,7 +291,6 @@ function($ionicViewService, $rootScope, $animate, $compile) {
|
||||
$scope.shouldAnimate = true;
|
||||
$scope.isReverse = false;
|
||||
$scope.isInvisible = true;
|
||||
$scope.$parent.$hasHeader = true;
|
||||
|
||||
$scope.$on('$destroy', function() {
|
||||
$scope.$parent.$hasHeader = false;
|
||||
|
||||
Reference in New Issue
Block a user