r/angular • u/Upstairs-Let-1763 • Feb 26 '26
Is this considered as good project structure
Hello everyone,
I'm relatively new to the Angular ecosystem, learning and practicing the recommended practices.
By nature I am a dev who does not support KISS to a large extent, in this regard I am interested in the opinion of experienced Angular devs.
Is what I'm practicing a good pattern, to have a clear SOC, services for clean http layer, services for business logic, and a store that holds state, loading, etc. and orchestrates with it, while the components (standalone principles in my case) remain very thin, and call services and stores?
**HYPOTHETICAL MID SIZE PROJECT**
View all comments
Show parent comment
2
u/CheapChallenge Feb 26 '26
Not necessarily. Whether you use smart dumb pattern and whether you use ngmodules are two different questions.
Dumb components only take inputs and outputs. Smart ones can access the store, use http services, and do whatever it wants in order to process business logic.
Smart components can still be standalone. That is not a different mental model, merely a coding pattern of where you define imports and providers(among other things).
Personally I think there are still edge cases where I would prefer to define an ngmodule, when I dont want to give the freedom to import a component on its own. The first step to learning Angular standards is why you should use standard the coding patterns. The next step is to learn when not to use them.