为什么后退按钮没有出现?

时间:2016-02-09 13:16:36

标签: angularjs meteor ionic-framework

我的生活中无法弄清楚当我导航到<ion-view>

时为什么没有显示后退按钮

app根状态模板:

<ion-side-menus>
  <ion-side-menu side="left">
    <div class="list">
    <!-- ... -->  
    </div>
  </ion-side-menu>
  <ion-side-menu-content state>
    <ion-nav-bar class="bar-positive">
      <ion-nav-back-button></ion-nav-back-button>
    </ion-nav-bar>

    <!-- Content -->
    <ion-nav-view></ion-nav-view>

  </ion-side-menu-content>
</ion-side-menus>

然后,我有两个简单的视图,一个在app start上加载,另一个从ui-sref链接。

默认app.entries州模板:

<ion-view title="Entries">
    <a ui-sref="app.entryDetails({ entryId: entry._id })" ng-repeat="entry in entryList"> {{entry.title}} </a>
</ion-view>

app.entryDetails州模板:

<ion-view title="{{entry.title}}">
    Testing.
</ion-view>

最后,this就是这样。关于这里发生了什么的任何想法?

1 个答案:

答案 0 :(得分:-1)

使用 func retrieveBlurbs() { let query = BackendlessDataQuery() // Use backendless.persistenceService to obtain a ref to a data store for the class let dataStore = self.backendless.persistenceService.of(Blurb.ofClass()) as IDataStore dataStore.find(query, response: { (retrievedCollection) -> Void in print("Successfully retrieved: \(retrievedCollection)") self.blurbs = retrievedCollection.data as! [Blurb] self.tableView.reloadData() }) { (fault) -> Void in print("Server reported an error: \(fault)") } }

ion-nav-back button