本文整理汇总了TypeScript中angularfire2-offline/database.AngularFireOfflineDatabase类的典型用法代码示例。如果您正苦于以下问题:TypeScript AngularFireOfflineDatabase类的具体用法?TypeScript AngularFireOfflineDatabase怎么用?TypeScript AngularFireOfflineDatabase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了AngularFireOfflineDatabase类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: constructor
constructor(public navCtrl: NavController, public navParams: NavParams, afoDatabase: AngularFireOfflineDatabase) {
this.transactionID = this.navParams.get('transactionName');
this.jobcardID = this.transactionID.split(":")[0]
this.item = afoDatabase.object('/transactions/' + this.jobcardID + '/' + this.transactionID);
console.log(this.item)
}
开发者ID:rajesh241,项目名称:libtech,代码行数:6,代码来源:transaction.ts
示例2: resource
resource(type, id: string): AfoObjectObservable<Page> {
return this.afoDatabase.object(`client/${type}/${id}`);
}
开发者ID:adriancarriger,项目名称:pv-site,代码行数:3,代码来源:api.service.ts
示例3: 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
示例4: getSermon
getSermon(sermonId) {
return this.afoDatabase.object(`client/sermons/${sermonId}`);
}
开发者ID:adriancarriger,项目名称:pv-site,代码行数:3,代码来源:api.service.ts
注:本文中的angularfire2-offline/database.AngularFireOfflineDatabase类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论