Ionic - How to remove sidemenu on login page only?

前端 未结 17 2867
北海茫月
北海茫月 2020-12-08 09:25

I need to remove sidemenu only on my login page. Otherwise remain. How it can be done? I\'m using command ionic ionic start myApp sidemenu to create the project

17条回答
  •  广开言路
    2020-12-08 10:09

    I have made a small demo for the question.

    Plunker Demo

    If you want a page differently from sidemenu.Create a new Parent state. For example

    $stateProvider
        .state('landing', {
            url: '/landing',
            controller: 'landingCtrl',
            templateUrl: 'landing.html'
        });
    

    Html :

    
        
            
        
        
            

    Welcome To Landing Page

    My App

    Login

    Then call this state using /landing when ever you want.

提交回复
热议问题