我的生活中无法弄清楚当我导航到<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就是这样。关于这里发生了什么的任何想法?
答案 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