l-lin / angular-datatables

DataTables with Angular
https://l-lin.github.io/angular-datatables/
MIT License
1.57k stars 486 forks source link

How “Draw” is working in Server side angular Datatables #1554

Closed RajasekharKp closed 3 years ago

RajasekharKp commented 3 years ago

Trying to implement, server side angular datatables for implementing server side pagination. Data is populated from API, but datatable properties are not working(sort, search, UI pagination). I observed in the example API, draw keyword is dynamically updating for every pagination click. How can we send draw parameter from UI ? what is the importance of drawkey in the response. is draw key is mandatory in JSON response ? could you please help me on this issue,

I took below example for reference, but not sure how draw is updating for every click. Please suggest me.

https://stackblitz.com/edit/angular-datatable-server-side-dwxpsz http://l-lin.github.io/angular-datatables/#/basic/server-side-angular-way