Skip to content
This repository was archived by the owner on Jan 12, 2019. It is now read-only.
This repository was archived by the owner on Jan 12, 2019. It is now read-only.

NormalizedCollection constructor error #85

Description

I am getting the following error:

Error Error: Each argument to the NormalizedCollection constructor must be a valid Firebase reference or an Array containing a Firebase ref as the first argument i@http://192.168.0.100:8100/lib/firebase-util.min.js:9:6773 n@http://192.168.0.100:8100/lib/firebase-util.min.js:9:6478 http://192.168.0.100:8100/js/controllers.js:558:54 invoke@http://192.168.0.100:8100/lib/ionic/js/ionic.bundle.js:17762:22

Here is my data structure:

{
"login": {
"user1": "kato"
},

"profile": {
"user1": {
"first": "Kato",
"last": "Richardson"
}
}
}

And my code:

var fb = new Firebase("https://xxxxxx.firebaseio.com");
var norm = new Firebase.util.NormalizedCollection(
fb.child('login'),
fb.child('profile')
);

Any idea what am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions