Answer the question
In order to leave comments, you need to log in
Algorithm for implementing pagination on the client side (without repeated requests to the API)?
Hello . Let's say I have an array
[
{Id:1,title:'hi'},
{Id:2,title:'hi'},
{Id:3,title:'hi'},
... И ещё сто объектов
]
//pageCount - кнопка с цифрой которую мы получили* на 20 - так я получаю до скольки записей нужно "обрезать" массив
arr.slice(0,pageCount)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question