离子幻灯片菜单第二级,缺少后退按钮

时间:2015-10-31 19:14:14

标签: ionic-framework

有谁知道如何在第二级添加后退按钮?在我的示例中,当我在“设置”页面时,我需要后退按钮:

<ion-side-menus enable-menu-with-back-views="false">
    <ion-side-menu-content>
        <ion-nav-bar class="bar-positive">
            <ion-nav-back-button class="button-clear" ng-click="goBack()">Back</ion-nav-back-button>
                <ion-nav-buttons side="left">
                    <button class="button button-icon button-clear ion-navicon" menu-toggle="primary"></button>
                </ion-nav-buttons>
            </ion-nav-bar>
        <ion-nav-view name="menuContent"></ion-nav-view>
    </ion-side-menu-content>

    <ion-side-menu side="left" class="side-menu" slide-along offset="-15">

    <ion-header-bar class="bar-dark">
        <h1 class="title">Menu</h1>
    </ion-header-bar>

    <ion-content>
        <ul class="list">
            <a href="#/event/settings" class="item" menu-close>Settings</a>
        </ul>
    </ion-content>
</ion-side-menu>

如果我从按钮中移除menu-close,则表现得很奇怪。

0 个答案:

没有答案