Angularjs + Ionic Framework: How to create a new route that shows the ion-tabs navigation but without defining a tab for itself?

后端 未结 1 1676
梦谈多话
梦谈多话 2021-02-09 21:28

Long title but here is a better explanation.

I have a template html file called \"Login\". I define a route in app.js like so

.state(\'login\', {
  url:         


        
相关标签:
1条回答
  • 2021-02-09 21:53

    The tabs are meant to have their own tab icon. So you can't put the login page inside the tabs abstract view without creating a tab icon for it.

    Instead of putting the login page under the tab abstract view, you should just put a separate tabbed navigation for the login page.

    Load the following view into your index page.

    <ion-view title="'Login'">
    
    <ion-content has-header="true" has-footer="true" padding="true">
    
    Login page content goes here 
    
    </ion-content>
    
    <div class="tabs tabs-icon-left">
      <a class="tab-item" href="#/tab/home">
       Home
      </a>
      <a class="tab-item" href="#/tab/about">
        About
      </a>
    </div>
    
    </ion-view>
    
    0 讨论(0)
提交回复
热议问题