i have following structure in html page:
<ul data-ng-controller="listctrl"> <li data-ng-repeat="record in records"> <div>.............</div> </li> </ul>
i have total 15 records displaying on same page.
i need divide these pages 1-5, 6-10, 11-15, if added limitto: 5 showing first 5 records. need see rest of records 6-10 & 11-15 on next page.
is there kind of filter in angularjs or other way ?
you can use custom "from" filter:
app.filter('from', function() { return function(data, from) { return data.slice(parseint(from)); } });
es: data-ng-repeat="record in records | from: 5 | limitto: 5"
Comments
Post a Comment