FirebaseExtended / angularfire

AngularJS bindings for Firebase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

limitToFirst() not working with $firebaseArray and other query parameters

r3wt opened this issue · comments

Version info

Angular:
1.6.2
Firebase:
3.6.9
AngularFire:
2.3.0
Other (e.g. Node, browser, operating system) (if applicable):

Test case

$scope.featuredListings = $firebaseArray( firebase.database().ref('properties').orderByChild('featured').equalTo(true).limitToFirst(16) );

will be happy to add a plunk if you can provide a template. all the versions on plunker are way out of date.

Steps to reproduce

run query and observe wrong behavior.

Expected behavior

16 items at most should be returned

Actual behavior

hundreds of items are returned

oddly its now working. bizarre.