Reputation: 31
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.
Upvotes: 0
Views: 255
Reputation: 31
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
});
}
Upvotes: 1
Reputation: 8483
You cannot rename it easily within the console, but you can add a new node with the same content "Meeting with..." and delete the existing node.
Upvotes: 1