【问题标题】:How to get data of firebase realtime database如何获取firebase实时数据库的数据
【发布时间】:2019-04-02 11:12:59
【问题描述】:

我想从我的深层次数据库中获取数据

这是我最新的代码

this.planRef = this.db.object('user/buku1/belanja/'+ id);
return this.planRef;

【问题讨论】:

标签: angular typescript firebase-realtime-database


【解决方案1】:
return firebase.database().ref('user/buku1/belanja/'+ id)
.once('value')
.then(function(snapshot) {
      var dataValue = (snapshot.val();
    });

您只需要遵循 Firebase 文档。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-02-22
    • 1970-01-01
    • 1970-01-01
    • 2019-01-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多