我第一次开始使用Ionic.目前我有一个列表视图,当移动到列表中时,出现后退按钮.
<ion-nav-bar class="bar-stable nav-title-slide-ios7"> <ion-nav-back-button class="button-icon icon ion-ios7-arrow-back"> Back </ion-nav-back-button> </ion-nav-bar>
您可以使用< ion-header-bar align-title =“right”>
原文链接:https://www.f2er.com/angularjs/140548.html<ion-header-bar align-title="left" class="bar-positive"> <div class="buttons"> <button class="button" ng-click="doSomething()">Left Button</button> </div> <h1 class="title">Title!</h1> <div class="buttons"> <button class="button">Right Button</button> </div> </ion-header-bar> <ion-content> Some content! </ion-content>
正如Harry指出的那样,添加离子导航按钮并设置side = right是正确的方法.@H_403_4@
(复制自@ harry的答案)@H_403_4@
<ion-nav-bar class="bar-stable nav-title-slide-ios7"> <ion-nav-back-button class="button-icon icon ion-ios7-arrow-back"> Back </ion-nav-back-button> <ion-nav-buttons side="right"> <button class="button button-clear button-positive" ng-click="reset()"> Refresh </button> </ion-nav-buttons> </ion-nav-bar>