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

dirPagination: repeating on object has least items on first page rather than last #470

Open
tbone849 opened this issue Mar 26, 2018 · 0 comments

Comments

@tbone849
Copy link

Description of issue: When I use dir-paginate on an object, the pagination works but the first page has the least amount of items, rather than the last page. Version 0.11.1

dir-paginate

Any relevant code:

example.html

<div class='table-container'>
  <table style='width:100%'>
    <tr>
      <th align='left'>Last Name</th>
      <th align='left'>First Name</th>
      <th align='left'>YOG</th>
      <th align='left'>Enroll</th>
    </tr>
    <tr dir-paginate='student in students | itemsPerPage:10 ' pagination-id="studentBody">
      <td>{{student.lastName}}</td>
      <td>{{student.firstName}}</td>
      <td>{{student.yog}}</td>
      <td>Enroll</td>
    </tr>
  </table>
</div>
<dir-pagination-controls
	max-size='5'
	direction-links='true'
	boundary-links='true'
	pagination-id='studentBody'>
</dir-pagination-controls>
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

1 participant