本文整理汇总了TypeScript中angularfire2-offline/database.AngularFireOfflineDatabase.list方法的典型用法代码示例。如果您正苦于以下问题:TypeScript AngularFireOfflineDatabase.list方法的具体用法?TypeScript AngularFireOfflineDatabase.list怎么用?TypeScript AngularFireOfflineDatabase.list使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类angularfire2-offline/database.AngularFireOfflineDatabase
的用法示例。
在下文中一共展示了AngularFireOfflineDatabase.list方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: onInit
/**
* Called when creating the service.
* - Gets the required items from Firebase to use in the app
*/
onInit() {
this.menu = this.afoDatabase.list('client/menu');
this.sermons = this.afoDatabase.list('client/sermons');
this.events = this.afoDatabase.list('client/events');
this.books = this.afoDatabase.list('client/books');
this.calendar = this.afoDatabase.object('client/calendar');
this.latestEvents = this.afoDatabase.object('client/latestEvents');
this.latestSermon = this.afoDatabase.object('client/latestSermon');
this.latestBook = this.afoDatabase.object('client/latestBook');
this.filterOptions = this.afoDatabase.object('client/filter');
this.eventsFilter = this.afoDatabase.object('client/eventsFilter');
this.booksFilter = this.afoDatabase.object('client/booksFilter');
this.slides = this.afoDatabase.list('client/home/slider');
this.homeInfo = this.afoDatabase.object('client/home/info');
this.features = this.afoDatabase.object('features');
}