How do I hide the tabs in Ionic Framework

后端 未结 10 639
囚心锁ツ
囚心锁ツ 2020-12-08 07:44

I chose the ionic tab view so I can use the templating system but I can\'t remove the tabs. I want a view like this and I did manage to remove the header bar but I cant remo

10条回答
  •  轮回少年
    2020-12-08 08:01

    You need to simply put a simple code in page controller like this.

    angular
       .module('app.module')
       .controller('pageController', function ($scope, $rootScope, $state, $ionicTabsDelegate) {
        /* hide tabs on page show */
        /* 0 = hide, 1 = show */
        $scope.$on('$ionicView.enter', function() {
            $ionicTabsDelegate.showBar(0);
        });
    });
    

    Fugital.com

提交回复
热议问题