Skip to content

Instantly share code, notes, and snippets.

@flowck
Last active July 23, 2017 18:02
Show Gist options
  • Save flowck/ac71ffa9e559087ad62e32c4057618b6 to your computer and use it in GitHub Desktop.
Save flowck/ac71ffa9e559087ad62e32c4057618b6 to your computer and use it in GitHub Desktop.
A snippet from angolan-on-github project.
// Number of users found
this.totalUsers = data.total_count;
// Pagination is the result of total users found devided by
// the number of users listed per request which is 30
this.pagination = Math.round(data.total_count / 30) + 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment