Can anyone suggest how to configure datatables with paginated results?
As an example :
Paginated results from my backend api :
{
"total": 50,
"per_page": 15,
"current_page": 1,
"last_page": 4,
"next_page_url": "http://domain.app?page=2",
"prev_page_url": null,
"from": 1,
"to": 15,
"data":[
{
// Result Object
},
{
// Result Object
}
]
}
Currently I am using ng2-smart-table with angular 6.
You guys can give me solution with normal datatables options from which I can control pagination.