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

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -