Skip to content

317482454/tm.pagination

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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属性,保存页码,并读取页码 image

About

angular分页插件tm.pagination(解决触发二次请求的问题)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published