Sina Shafigh
Sina Shafigh

Reputation: 31

How to rename parent node?

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.

a view of my database

Upvotes: 0

Views: 255

Answers (2)

Sina Shafigh
Sina Shafigh

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

Björn Kechel
Björn Kechel

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

Related Questions