Closed ksinghrathore closed 8 years ago
I am facing issue with $sope.query.page. It does not change when clicked on next button.
<tr md-row ng-repeat="order in orders | limitTo: query.limit : (query.page -1) * query.limit">
<md-table-pagination md-limit="query.limit" md-limit-options="[5, 10, 15]" md-page="query.page" md-total="{{orders.length}}" md-on-paginate="getOrders" md-page-select></md-table-pagination>
limit and total is working correctly.
Solved - my $watch event triggers page next to page 1. Thanks
I am facing issue with $sope.query.page. It does not change when clicked on next button.
<tr md-row ng-repeat="order in orders | limitTo: query.limit : (query.page -1) * query.limit">
<md-table-pagination md-limit="query.limit" md-limit-options="[5, 10, 15]" md-page="query.page" md-total="{{orders.length}}" md-on-paginate="getOrders" md-page-select></md-table-pagination>
limit and total is working correctly.