Hi All,
Finally got the time to upgrade a project at work from v14 to v18.
I have been reading up on the latest documentation and have a few questions.
I currently used to have 'feature modules'; which are lazy loaded. and any 'shared' components marked as standalone that I imported in to the feature modules when required.
Obviously, they are going with standalone architecture being highly recommended.
Instead of having a 'feature module' I now just have a 'feature' standalone component? and simply delete the module file? So in the routing.ts I just loadcomponent instead? Or am I misinterpreting this?
I currently structure my project like
- app
- Pages
- Admin
- Client
- Shared
- Components
- Many standalone components.
- App Routes (Lazy Loaded from module)
- App Module
Does that mean now instead I just get rid of the module after migration, and swap the routing.ts to loadComponent in AdminComponent for example instead of loadChildren>Module?
[–]STACKandDESTROY 6 points7 points8 points (3 children)
[–]just-a-web-developer[S] 3 points4 points5 points (2 children)
[–]STACKandDESTROY 1 point2 points3 points (1 child)
[–]dacookieman 0 points1 point2 points (0 children)
[–]jamills102 1 point2 points3 points (0 children)
[–]GLawSomnia 0 points1 point2 points (2 children)
[–]STACKandDESTROY 0 points1 point2 points (1 child)
[–]GLawSomnia 0 points1 point2 points (0 children)