Carlos Cifuentes
AngularJS library migration · tables

Migrating ng-table / smart-table to modern Angular

ng-table and smart-table added sorting, filtering and pagination to HTML tables through directives and a params object.

What replaces it

OptionWhen to choose it
Angular Material tableSorting, paging and sticky headers with little code.
CDK tableSame behavior without Material styles.
AG GridWhen the table has grown into a real data grid.

How to migrate it

  1. Decide per table whether sorting and paging happen in the browser or on the server.
  2. Build one shared table component with the features you really use.
  3. Move each table when its screen is migrated; keep column definitions in the component, not in the template.

Watch out. Client-side filtering of thousands of rows was a common performance problem with these libraries. Moving it to the server during the migration often fixes the slowest screens.

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