2
我已經存儲在火力用戶數據使用angularfire2
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做到這一點?