I found angularFire
is always confusing me when used in conjunction with the pure Firebase JavaScript API.
Let\'s say I have no idea how to call the Fir
You can use orderByPriority
to convert firebase
objects into array and then apply normal filter and orderBy.
<div ng-repeat="customer in customers | orderByPriority | filter:searchText">
<span>{{ customer.$id }} </span>
</div>
Take a look at the orderByPriority filter source code - which converts an object into an array ordered by the Firebase priority: https://github.com/firebase/angularFire/blob/master/angularfire.js#L37
You can include the key of the object directly in each item in the array by setting a special $key
property.