1
我有以下內容,只需將一個名稱與uid一起推入數據庫。我想在同一時間將該uid存儲在另一個位置。我怎樣才能做到這一點?我使用離子3,angularfire2。將firebase uid推到多個位置 - Angularfire2 Ionic 3
addName() {
let prompt = this.alertCtrl.create({
title: 'Name of user',
message: "Enter a name for this new user",
inputs: [
{
name: 'Name',
placeholder: 'Username'
},
],
buttons: [
{
text: 'Cancel',
handler: data => {
console.log('Cancel clicked');
}
},
{
text: 'Save',
handler: data => {
this.users.push({
title: data.Name,
});
this.posts.push({
title: data.Name
});
}
}
]
});
prompt.present();
}
在此先感謝
謝謝弗蘭克,正是我所需要的。對不起,我所指的是推送ID或唯一ID。再次感謝! – MacD