l-lin / angular-datatables

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

after loading Data from api using ngFor loop the pagination ,sorting and search not works #1700

Closed Zain-Malik-7 closed 1 year ago

Zain-Malik-7 commented 1 year ago

1

shanmukhateja commented 1 year ago

Hello,

The usage of ngFor and other Angular specific directives are deprecated and I plan on marking them as Deprecated in the next few days.

Please use data property inside AJAX callback (instead of setting to empty array) and let Datatables.net library render the table.

If you have an advanced use case, please use TemplateRef or Angular Pipes as per our documentation.

Reference: https://l-lin.github.io/angular-datatables/#/advanced/using-pipe

https://l-lin.github.io/angular-datatables/#/advanced/using-template-ref

I am closing this issue now :)