I would like to know how to implement a paging logic in the database using mysql and angular on the front end with ui-bootstrap or dirPagination. For example, getting 10 in 10 on the bank using LIMIT
and OFFSET
. My question is in the implementation of logic on the front end. It can be a simple explanation and some example.
As an API, I have doubts about endpoints as well. Would they look like the examples below? I would like an example too.
GET /recursos?offset=10&limit=10
GET /recursos/limit/:limit/offset/:offset