Last active
July 23, 2017 18:02
-
-
Save flowck/ac71ffa9e559087ad62e32c4057618b6 to your computer and use it in GitHub Desktop.
A snippet from angolan-on-github project.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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