當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript AngularFireOfflineDatabase.list方法代碼示例

本文整理匯總了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');
 }
開發者ID:adriancarriger,項目名稱:pv-site,代碼行數:20,代碼來源:api.service.ts


注:本文中的angularfire2-offline/database.AngularFireOfflineDatabase.list方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。