我有一个动态数据,我从后端获取并由elastisearch维护,即使您有1000条记录,它也只会发送50条记录以及滚动ID,现在我的意思是我正在使用ngx-datatable,因此在服务器端分页如何使用ngx-datatable在角度中使用滚动ID,数据将低于格式。
{
"_scroll_id": "DnF1ZXJ5VGhlbkZldGNoBQAAAAAAABopFmdNTC1zZTQ4VG4yZ0pGc2hVVV92ZFEAAAAAAAAaKhZnTUwtc2U0OFRuMmdKRnNoVVVfdmRRAAAAAAAAGisWZ01MLXNlNDhUbjJnSkZzaFVVX3ZkUQAAAAAAABosFmdNTC1zZTQ4VG4yZ0pGc2hVVV92ZFEAAAAAAAAaLRZnTUwtc2U0OFRuMmdKRnNoVVVfdmRR",
"hits": {
"total": 7,
"hits": [
{
"_source": {
"fullname": "Jack Smith",
"age": 25,
"address": "P.O. Box 902 3472 Ullamcorper Street\nLynchburg DC 29738",
"published": "14/10/2017, 20:47:34"
}
},
{
"_source": {
"fullname": "Jamie Konan",
"age": 33,
"address": "Ap #443-336 Ullamcorper. Street\nVisalia VA 54886",
"published": "14/10/2017, 20:47:58"
}
},
{
"_source": {
"fullname": "David James",
"age": 36,
"address": "737-2580 At Street\nIndependence Texas 87535",
"published": "14/10/2017, 20:48:39"
}
}
]
}
}