I want to make pagination in angular 8 project without using material library. I receive an array that include 10 data rows, first page link, last page link and total pages.
Response from Server:
{
data : [
{name: 'abc': id: 1},
{name: 'abc': id: 2},
{name: 'abc': id: 3},
{name: 'abc': id: 4}
],
first_page_url: "http://example.com/api/data?page=1"
from: 1,
last_page: 5,
last_page_url: "http://example.com/api/data?page=5",
next_page_url: "http://example.com/api/data?page=2",
path: "http://example.com/api/data",
per_page: 30,
prev_page_url: null,
to: 30,
total: 123,
}
How can i make pagination working?
