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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -