Skip to content

How do I iterate through FirebaseListObservable<[]> object #558

Closed
@kanishkatn

Description

@kanishkatn

Hi,

I wanna iterate through FirebaseListObservable<[]> object and create an array of objects. I am having a hard time figuring how to access the values from it.

Here is my code

users:FirebaseListObservable<IUser[]>;
this.users = this.af.database.list("/users");
        this.users.forEach(element => {
            console.log(element);
        });

This is how the object "element" looks like in the console

screen shot 2016-09-24 at 3 06 46 pm

Please help

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions