You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 12, 2019. It is now read-only.
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
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:22Here 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?