ionic隐藏头部导航栏
HTML
<ion-view view-title="服务" hide-nav-bar="true"> <ion-content class="padding"> </ion-content> </ion-view>
Controller
angular.module('starter') .controller('PublicCtrl', function($scope, $state, $http, $ionicPopup, AuthService,$rootScope) { // 显示控制器 $scope.$on('$ionicView.enter',function(){ $rootScope.hideTabs=false; }) $scope.show=false;//控制标题栏是否显示 $scope.transrate=0;//控制标题栏透明度 });