我使用ionic-animated-drawer作为我的侧边栏。它适用于Ionic,v1.0.0-rc.5。这是live demo
当我将离子从Ionic,v1.0.0-rc.5更新为Ionic,v1.0.0时。侧边栏标题消失了。详细说来,它改变了我的布局结构。它添加了一些新闻类。没有什么改变,只是Ionic.bundle.js到新版本。
感谢先进的所有帮助。
<!-- // some html differences by each version -->
Ionic, v1.0.0-rc.5.
<ion-nav-bar class="bar-stable nav-title-slide-ios7 has-tabs-top bar bar-header nav-bar disable-user-behavior no-animation">
<div class="buttons left-buttons"> </div>
<h1 class="title ng-binding" ng-bind-html="title">Menu</h1>
<div class="buttons right-buttons"> </div>
</ion-nav-bar>
Ionic, v1.0.0.
<ion-nav-bar class="bar-stable nav-title-slide-ios7 has-tabs-top nav-bar-container" nav-bar-transition="ios">
<div class="nav-bar-block" nav-bar="cached">
<div class="nav-bar-block" nav-bar="active">
</ion-nav-bar>
我必须更新我的版本才能使收集重复正常工作。如何修改侧边栏以使用版本更新?
这是我的sidemeun模板。
<ion-side-menus>
<!-- NAV bar -->
<ion-nav-bar class="bar-positive nav-title-slide-ios7 has-tabs-top">
<ion-nav-back-button class="button-clear icon ion-android-arrow-back"></ion-nav-back-button>
<ion-nav-buttons side="left">
<button class="button button-icon icon ion-navicon" drawer-toggle animation="true">
</button>
</ion-nav-buttons>
</ion-nav-bar>
<!-- Center content -->
<ion-side-menu-content>
<ion-nav-view name="mainContent" animation="slide-left-right"></ion-nav-view>
</ion-side-menu-content>
<!-- Left menu -->
<drawer side="left">
<ion-nav-bar class="bar-stable nav-title-slide-ios7 has-tabs-top">
</ion-nav-bar>
<ion-view title="Menu">
<ion-content>
<ion-list>
<ion-item nav-clear menu-close ui-sref="app.home" drawer-toggle animation="true">Home</ion-item>
<ion-item nav-clear menu-close ui-sref="#" drawer-toggle animation="true">sub menu 1</ion-item>
<ion-item nav-clear menu-close ui-sref="#" drawer-toggle animation="true">sub menu 2</ion-item>
<ion-item nav-clear menu-close ui-sref="#" drawer-toggle animation="true">sub menu 3</ion-item>
</ion-list>
</ion-content>
</ion-view>
</drawer>
</ion-side-menus>