Closed nicklandgrebe closed 7 years ago
Product.page(1).perPage(10)
Product.first(10)
/links/prev
/links/next
Product.first(10) .then(function(products) { if(products.hasNextPage()) { products.nextPage() .then(function(nextPage) { ... }) } });
CollectionResponse < Collection
hasNextPage
nextPage
Stories
Product.page(1).perPage(10)
orProduct.first(10)
, and the server is nice enough to give me links like/links/prev
and/links/next
see here, I want to be able to use the links provided to navigate each subsequent pageImplementation
Work
CollectionResponse < Collection
class that addshasNextPage
andnextPage
helpers and is returned by collection loaders