angularUtils
angularUtils copied to clipboard
dir-pagination-controls not showing when itemsPerPage is expression
Description of issue: dir-pagination-controls is not showing direction arrows when itemsperpage is expression. Please tell me what should I do to work it properly.
Any relevant code:
HTML:
<tr dir-paginate="user in users.data | itemsPerPage: limit | orderBy:'title'" total-items="users.total_count" >
<td>{{user.title}}</td>
</tr>
</tbody>
</table>
<dir-pagination-controls max-size="5" direction-links="true" boundary-links="true" >
</dir-pagination-controls>
Need to see more code - controller? Also, what is the value of $scope.limit and how many items in users.data?
$scope.limit = 2 and users.data have 8 items. It displays link when I give itemsPerPage: 2
Try to reproduce it here and show me: http://plnkr.co/edit/b37IdFFJUokaeSummETX?p=preview