dirpagination

dirPagination does not work (Angular JS pagination)

心已入冬 提交于 2019-12-11 12:08:37
问题 I am trying to use dirPagination but it does not work. See my code in action: http://plnkr.co/edit/18BxNhHRNyRoI17sBGQF?p=preview My code: <!DOCTYPE html> <html ng-app="myApp"> <head> <link data-require="bootstrap-css@3.1.1" data-semver="3.1.1" rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" /> <script data-require="angular.js@1.3.0-beta.5" data-semver="1.3.0-beta.5" src="https://code.angularjs.org/1.3.0-beta.5/angular.js"></script> <script data

dir-pagination directive angularjs : is there any way I can get all the records of current page in pagination?

老子叫甜甜 提交于 2019-12-01 03:56:47
问题 I am using dir-pagination directive by @michaelbromley. I want to get all the records on the current page of directive. Is there any way to do this? Here is the link: dir-pagination, so I need a collection of 5 records from 100 to 96. Is there any quick way to do it? I have tried couple of things but not working. 回答1: Here is another possible way to do it, which does not require you to duplicate the logic from the dir-paginate expression: For each repeated item, you could just push that item