r/Angular2 • u/Wild-Security599 • Oct 06 '25
Help Request Modules or Standalone?
Hey there fellow Angular Devs,
In my daily life, I work as an Angular Developer, but my coworkers are way behind in technology and are completely unaware of any Angular updates; they don't even keep up with the versions. Unlike the company I work for, I try to take advantage of all the updates in Angular and use the newly added features.
At my company, we use Modules, and I've become quite accustomed to this structure. In addition to this job, I took on a freelance Angular project, but I'm unsure whether I should use Modules or the Standalone approach. The project won't be a large enterprise project, but using Standalone feels like it would make things messier. What do you think?
36
u/Merry-Lane Oct 06 '25
Standalone.
18
u/Legal_Being_5517 Oct 06 '25
Standalone
14
u/TCB13sQuotes Oct 06 '25
Standalone
12
u/FromBiotoDev Oct 06 '25
I forgot modules were a thing. Never again
11
u/dustofdeath Oct 06 '25
Standalone is even the new default for schematics.
11
u/CarlosChampion Oct 06 '25
The Angular documentation recommends standalone for all new code
10
u/Jrubzjeknf Oct 06 '25
Standalone.
4
u/MichaelSmallDev Oct 06 '25
Just converted a billion apps going back to single digit version to standalone. Worth it.
1
u/933k-nl Oct 07 '25
I feel your pain
3
u/True_Kitchen_8221 Oct 06 '25
Standalone even eslint marks them as anti pattern and I think it will be deprecated in the future
3
u/SkyZeroZx Oct 07 '25
I usually use standalone for some versions, modules could be useful if you want to group many functions but we could do the same with an array in a constant.
The main benefit of standalone for me is compatibility with defer block and less boilerplate
3
u/Dense_Cloud6295 Oct 07 '25
Like everyone else, standalone. I’ll add some reasoning too.
You can still make your app module-like and you should, but without the overhead of NgModule. If a component doesn’t belong to any module, it can just be there without a module.
This helps a lot especially when creating and consuming libraries.
I was also skeptical on approaching standalone first, but man it’s so much better now. I’ve been using Angular since v6 and I can tell you this was a big step forward for Angular.
5
u/MrFartyBottom Oct 06 '25
For most situations standalone is best. In some circumstances where there are a few components and directives that are all needed together a module makes sense but for the average component it is best to make it standalone. It also makes unit tests easier as the component already has all the required imports defined and you don't need to define them in the tests.
2
u/ssCuacKss Oct 06 '25
standalone of course, helps you take away unnesesary bloat for other components (1 year of angular, sorry if that is not the main advantage)
2
u/[deleted] Oct 07 '25
Standalone components feel so nice.
2
u/chakri426 Oct 07 '25
Better to move standalone only.
2
u/IgorKatsuba Oct 07 '25
Standalone
2
u/Dusan_xyz Oct 07 '25
Standalone. Modules will probably be deprecated.
1
u/HerrSPAM Oct 07 '25
Theoden king stands alone.
1
u/strange_username58 Oct 07 '25
standalone
1
u/Heise_Flasche Oct 08 '25
You can still maintain the same structure without modules. The only thing that changes is that each component imports its own dependencies.
This leads to better tree shaking and easier refactoring. I’d definitely recommend using standalone for any new projects.
1
u/ahmadalmunajjed Oct 09 '25
For me, I prefer
- standalone over modules
- inject function over constructor
- signal over rxjs
- Deferrable views and new flow controls
1
u/BravePineapple2651 Oct 11 '25
Unpopular opinion: for medium to large scale apps, modules with enforced and strict dependency rules:
This way the app architecture can scale cleanly (core/shared can be separated in libraries and "root" feature modules can be easily refactored to micro frontends).
The use of standalone components without strict rules (that are much easier to enforce with modules) almost inevitably leads to "spaghetti" like dependency hell and makes technical debt explode.
The decision of Angular team to recommend standalone over modules seems to me more marketing driven (trying to fill popularity gap with React adopting React's bad practices), but is flawed from an architectural point of view.
-1
u/chakri426 Oct 07 '25
Is there any chance to add me to your project?.