M
M
moveOn2018-06-29 17:53:10
JavaScript
moveOn, 2018-06-29 17:53:10

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

1 answer(s)
M
Maxim Timofeev, 2018-07-10
@webinar

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 question

Ask a Question

731 491 924 answers to any question