Using the regular Firebase JavaScript SDK, you can do the following:
var updates = {}; updates['/symbols/'+ref.push().key] = { typ :"symbol1", .... }; updates['/symbols/'+ref.push().key] = { typ :"symbol2", .... }; ref.update(updates);
Since AngularFire2 is built on top of the regular Firebase JavaScript SDK, they interact well. Therefore, you can simply use the Firebase JavaScript SDK for this operation.
source share