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

adds json response to README.md #19

Merged
merged 1 commit into from
May 20, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ Now, whenever the `infinity-loader` is in view, it will send an action to the ro

When the new records are loaded, they will automatically be pushed into the Model array.

#### JSON Response

The response provided by your server should include the number of total pages.

```json
{ "meta": { "total_pages": 4 } }
```

If your query returns 20 objects, and you're showing 6 per page, then the
number of total pages would be 4.

## Advanced Usage

### infinityModel
Expand Down