I want to retrieve data from firbase with a condition like this
ref.orderByChild('users').equalTo(userid).on('value', function(snapshot) {
// Need to return data as firebaseArray here
});
$firebaseArray is very useful when we want to show data on view. But I don't know how to return the snapshot there.
Please help me ! (bow)