How to use $firebaseArray in firebase return data in AngularJS -
i want retrieve data firbase condition this
ref.orderbychild('users').equalto(userid).on('value', function(snapshot) { // need return data firebasearray here });
$firebasearray useful when want show data on view. don't know how return snapshot there.
please me ! (bow)
a $firebasearray
can take in ref or query.
var query = ref.orderbychild('users').equalto(userid); var syncarray = $firebasearray(query);
the array function handles child events , keeps array in sync remote server changes.
Comments
Post a Comment