When I get all items from a JSON table in Firebase, it returns them as object of objects.
How do I get Firebase to return me an array of objects so that it works nicely with my ngFor?
I'm using angular 2 beta and typescript with Firebase.
This is the current structure returned from Firebase:
{{"item": ""}, {"item": ""}, {"item": ""}}
I want this (array of objects):
[{"item": ""}, {"item": ""}, {"item": ""}}]
This is my firebase code that works:
var query = this.refJob.orderByChild('status').equalTo('Active');
query.on('value', (snap) => {
resolve(snap.val());
});
Is there something I can do after equalTo to organise the results into an array?
Current bug:
