Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228598

How to hide nav-bar with tabs in Ionic 2?

$
0
0

I used the state change event (may be different term) to hide the tabs bar. And hope you can do the same thing for your nav-bar also.

    $scope.$on('$stateChangeSuccess', function(event, toState, toParams, fromState, fromParams) {
        try{
            if (toState.name=='home.delivery-detail' || toState.name=='home.collection-detail') {
                vm.lHideTabs = true;
            }
            else {
                vm.lHideTabs = false;
            }
        }
        catch(e){
            $ionicPopup.alert({
                title:'Error: $scope.$on',
                template:e.message
            });
        }

    });


Viewing all articles
Browse latest Browse all 228598

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>