angularfire
angularfire copied to clipboard
How do we use angularfire2, upon saving/pushing data, to generate Firebase unique id?
I'm aware that using Firebase REST we could POST and have a Firebase unique id generated. For example, a id that looks like this, -Kbz13Uo3.
- How do we do this using AngularFire2?
- Or maybe should we be asking is there a need to use Firebase Unique Id in the first place?
- What is a good self generated unique id when using it with Firebase? GUID?
hi, How can i edit the firebase data using $key
this is my new data from firebase
-KXxxQxJCdo0pidJI1ay EMAIL:
FIRSTNAME:john
LASTNAME:david
MOBILE: 654656767
I cannot get the data from firebase when using firebase object $key-->-KXxxQxJCdo0pidJI1ay
kindly advice me
Thanks & regards
store key value in object user this.firebase.object('/Users/' + user.$key) .update({ username: user.username,email:user.email});