Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can it work without totalPages? #166

Closed
techsoldaten opened this issue Jun 16, 2016 · 1 comment
Closed

Can it work without totalPages? #166

techsoldaten opened this issue Jun 16, 2016 · 1 comment

Comments

@techsoldaten
Copy link

I am trying to load content through an API that lacks a total_pages parameter in the response. No way to change it, all we get is a list of articles.

Is it possible to get ember-infinity working without this parameter? Right now, it loads the first 10 articles and displays a message 'Infinite Model Entirely Loaded'. What I would like to do is simply have the list stop scrolling when no results are returned from the server.

@hhff
Copy link
Collaborator

hhff commented Jun 17, 2016

Yup!

export default Route.extend(InfinityRoute, {
  _canLoadMore: true
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants