javascript - Pagination in Angularjs -
i trying build simple crud application beginners of angularjs. using angularjs + firebase + bootstrap that.
here ---plnkr--- that.
i wanna add new feature simple pagination that. think
$filter('filter')(array, expression, comparator)
may don't know how.
can please me !!!!?
angular provides filters perfect pagination: startfrom , limitto. jsfiddle great base example of how works. key have in scope page index, , page size. can change page viewing increasing/decreasing page index.
you can see how works piece of html
<li ng-repeat="item in data | startfrom:currentpage*pagesize | limitto:pagesize"> {{item}} </li>
Comments
Post a Comment