如何重命名父节点? [英] How to rename parent node?
本文介绍了如何重命名父节点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是 Angularfire 的新手.我创建了一个 Firebase 父节点,还有其他几个父节点.现在我需要知道如何重命名主父节点.
I'm very new in Angularfire. I created a Firebase parent node, with several other parents. Now I need to know how to rename the main parent node.
推荐答案
谢谢 Björn,我终于找到了.
Thanks Björn, Finally I found it.
$scope.addMeeting = function(){
if($scope.meetingEditCheck){
var key = $scope.editKey;
var newPostKey = firebase.database().ref().child('users/' + firebaseUser.uid + '/meetings/' + key);
newPostKey.update({
'name': $scope.meetingEditName,
'date': Firebase.ServerValue.TIMESTAMP
});
}
这篇关于如何重命名父节点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文