angularUtils icon indicating copy to clipboard operation
angularUtils copied to clipboard

dir-pagination-controls not showing when itemsPerPage is expression

Open Geetakokate opened this issue 9 years ago • 3 comments

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>

Geetakokate avatar Jul 21 '16 12:07 Geetakokate

Need to see more code - controller? Also, what is the value of $scope.limit and how many items in users.data?

michaelbromley avatar Jul 21 '16 13:07 michaelbromley

$scope.limit = 2 and users.data have 8 items. It displays link when I give itemsPerPage: 2

Geetakokate avatar Jul 21 '16 13:07 Geetakokate

Try to reproduce it here and show me: http://plnkr.co/edit/b37IdFFJUokaeSummETX?p=preview

michaelbromley avatar Jul 21 '16 13:07 michaelbromley