离子导航后退按钮未显示

时间:2016-01-21 14:29:06

标签: ionic-framework navbar

我已经尝试了几个代码示例来获取主页中的后退按钮。我看不到导航后退按钮。我哪里错了?

<ion-side-menus enable-menu-with-back-views="true">
    <ion-nav-bar class="bar-dark">
        <ion-nav-back-button class="button-clear">
    <i class="button button-icon my-back-button"></i>
  </ion-nav-back-button>
    </ion-nav-bar>
    <ion-side-menu-content>                
    <ion-nav-view></ion-nav-view>
    </ion-side-menu-content>
    <ion-side-menu side="right">
        <ion-header-bar class="dark-bg expanded">            
             <a href="#" class="logo"><span>R</span></a>
             <p align="center"> My App</p>
        </ion-header-bar>
        <ion-content class="stable-bg has-expanded-header">
            <ion-list>
                <ion-item nav-clear menu-close ui-sref="app.settings">
                    Settings
                </ion-item>
                <ion-item nav-clear menu-close ui-sref="app.profile">
                    Profile
                </ion-item>
                <ion-item nav-clear menu-close ui-sref="app.logout">
                    Log out
                </ion-item>            
            </ion-list>
        </ion-content>
    </ion-side-menu>
</ion-side-menus>

主页代码

<ion-view title="Home">
<ion-content>
  <div class="list card">
   <a class="item item-icon-left assertive" ui-sref="makerequest">
    <i class="icon ion-ios-list-outline"></i>
    Make New Request
  </a>
  <a class="item item-icon-left assertive" ui-sref="viewrequest">
    <i class="icon ion-ios-copy"></i>
    View Request
  </a>
  </div>
</ion-content>
</ion-view>

screenshot

在上面添加了我的主页代码。

此致 Sabarisri

0 个答案:

没有答案