Carlos Cifuentes
AngularJS library migration · data tables

Migrating angular-datatables (jQuery DataTables) to modern Angular

angular-datatables wrapped the jQuery DataTables plugin in AngularJS directives, configured with DTOptionsBuilder and DTColumnBuilder. A version for modern Angular exists, but it still depends on jQuery.

What replaces it

OptionWhen to choose it
Angular Material table / CDK tableWhen the table needs sorting, paging and simple filters.
AG GridWhen you rely on advanced features: fixed columns, grouping, export, virtual scroll.
PrimeNG TableAn open-source table with filters, column features and CSV export ready-made.

How to migrate it

  1. List the DataTables features and extensions in use: server-side processing, export buttons, fixed columns, responsive mode.
  2. Decide who owns paging, sorting and search. If the server does, document the request and response format.
  3. Build one shared table component on the replacement and migrate each table together with its screen.

Watch out. DataTables server-side processing sends its own parameters (draw, start, length, search, order). Either keep a small adapter in the new data service or change the API, but decide it explicitly.

Other libraries

Planning a migration or a micro-frontend platform?

In a 20-minute call you describe your situation and I tell you how I'd approach it. If it isn't worth doing yet, I'll say so.

Message me on LinkedIn