I've waded through a lot of pages/questions regarding pagination/infinite scrolling/load more content.
Either the content is pre-loaded completely in the store or the examples requesting new data simply don't work.
I've got a blog displaying 5 posts then a 'load more' button. Upon hitting this button I'd like to request 5 more posts from the server and add them live to the page.
this.store.find('post', {limit: 5, offset: 5, sort:'createdAt desc'});
Please can you provide a working example or instructions to make it work?
EDIT: the following seems to be a good option but I don't know how to make it work
Make the model a standard array and use the route hooks and "load more" actions to fill it with records from ED query results
Aucun commentaire:
Enregistrer un commentaire