angular分页插件tm.pagination(解决触发二

tm.pagination

在线DEMO
angular分页插件tm.pagination(解决触发二次请求的问题)
根据条件查询
需要重新定义一个方法

$scope.paginationConf = { currentPage: $location.search().currentPage ? $location.search().currentPage : 1, totalItems: 8000, itemsPerPage: 15, pagesLength: 15, perPageOptions: [10, 20, 30, 40, 50], onChange: function(){ console.log($scope.paginationConf.currentPage); $location.search('currentPage', $scope.paginationConf.currentPage); } };

11.21 添加href属性,保存页码,并读取页码

版权声明:

1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。
2、网站不提供资料下载,如需下载请到原作者页面进行下载。