Skip to content

Observable returns nothing when there is no corresponding list inside firebase database #1207

@yaozuwang

Description

@yaozuwang

Before updating to angularfire2 version 5, if there is no corresponding list inisde the database, i will get an blank array back with length: 0.

After updating, if there is no corresponding list inside the database, i will get nothing at all. This means i can't check *ngIf="(list)?.length==0 because there is no array.

It will still listen to change events, and if i add and then remove an object to that list(which means the list doesn't exist inside firebase again), i will then be getting an array with length: 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions