【发布时间】:2017-01-20 23:46:24
【问题描述】:
我将用户数据存储在 firebase 中
users : {
-KamJGmnL8S4Nn_okIcc : {
name: "Someone",
email: "example.com",
website: "somesite.com"
},
-laeghmnw8S4Nn_9inb47 : {
name: "Someone",
email: "example.com",
website: "somesite.com"
}
}
我需要向用户添加一个新对象{ collections: <key> : { ... }, <key>: { ... } },例如上述对象中的第一个用户。我需要能够推送到collections,因为它可以有多个对象。
我怎样才能用 angularfire2 做到这一点?
【问题讨论】:
标签: angular firebase firebase-realtime-database angularfire2