Ionic - How to remove sidemenu on login page only?

前端 未结 17 2861
北海茫月
北海茫月 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:12

    What you can do is define the login page without a sidemenu. Check your login page HTML template. Make sure you do not have the and elements in it. These are used on pages that need to have a sidemenu.

    Your login page should look like this:

    
      
         
       
    
    

    To have sidemenu on other pages, just put the sidemenu content in a parent state which in your code is the app state.

    Your menu.html file:

    
      
        
          
          
        
    
       
          
       
      
    
    

提交回复
热议问题