Answer the question
In order to leave comments, you need to log in
How to paginate data for ng-repeat?
I give a data set via REST, which is built by the standard Yii2 class for these cases. I receive and display accordingly Angularjs. I get the resource module and display it using ng-repeat. I get a lot of items. It is necessary to make page data acquisition and display.
Can you point to any pagination guide for a similar architecture? Or at least tell me where to dig. Thank you.
Answer the question
In order to leave comments, you need to log in
For any structure, the principle is the same, pass the page number in the request, optionally and transfer limit. On the yii side there is a great yii\data\Pagination class which will give you everything you need.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question