Reputation: 217
With the new Firebase, I can't find the way to use $firebaseArray.
It used to be:
$firebaseArray(new Firebase('https://......../users'));
Now, with the new Firebase, I tried:
$firebaseArray(firebase.database().ref('users'))
But this gives me an error, saying "Must pass a valid Firebase reference to $firebaseArray".
What is it that I don't understand?
Upvotes: 1
Views: 1728
Reputation: 9
From https://github.com/firebase/angularfire/blob/master/docs/quickstart.md
var ref = firebase.database().ref().child('users');
$scope.users = $firebaseArray(ref);
Upvotes: 0