I'm trying to get the data partitioned
Example: I have an array with 10 items, I would like to get 2 in 2
My query:
var listRef = firebase.database().ref('products').orderByPriority().startAt(1)
.limitToFirst(2);
var productsPagination = $firebaseArray(listRef);
return productsPagination;
My idea is to increase startAt.
I have the feeling that orderByPriority is not working, I tested it with orderByKey and it worked. But I need orderByPriority