I’m trying to make the sorting of table work for /users
that is defined in UserListComponent
. The sorting functionality was broken by introducing NavbarComponent
.
I tired to switch to standalone components when possible as suggested in this answer. I’m new to Angular and as far as I understand the @NgModule
in DemoMaterialModule
(main.ts) is quite useful because I don’t have to import every single material module in every component. Angular 18 promotes standalone way so it may be a good idea to go this route.
Is this the best fit form my use case? Would it be better to fully switch from my hybrid approach (standalone + modular) to standalone?
How to make it work?
GitHub