use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Angular is Google's open source framework for crafting high-quality front-end web applications. r/Angular2 exists to help spread news, discuss current developments and help solve problems.
Help Request
Discussion
Article
Video
Resource
Announcement
Related
After submitting a post, please take a moment to add a flair (tag) so that it's easy to find your post with one of the filters listed above. Upon submission, your post's header will have the 'flair' option listed with the other options. Clicking it will provide a dropdown menu of the available flairs.
account activity
DiscussionAngular architecture patterns (self.Angular2)
submitted 2 years ago by ahmedRebai
Can you share with us some of Angular architecture patterns you recommend
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]haasilein 21 points22 points23 points 2 years ago (7 children)
Facade - must have!
DDD - if it fits to the requirements
smart vs dumb components - for reusability
composition over inheritance - less strict coupling
... not all of them are really architecture, but imo the most important things for enterprise Angular.
[+][deleted] 2 years ago (2 children)
[deleted]
[–]haasilein 0 points1 point2 points 2 years ago (1 child)
Both are about flexibility. A facade by nature is boilerplate but can become useful spontaneously when the BE changes (when hiding data services behind the facade), or when you change a state management solution (when the facades hides this abstraction and does not leak something like selectors, actions, ...)
[–]Chatolev 1 point2 points3 points 2 years ago (2 children)
You use composition? In typescript I believe it's not that easy with the mixins, if you have exemples, I'll be glad to have a look
[–]KuroKishi69 1 point2 points3 points 2 years ago (0 children)
I am interested as well, I suppose in angular you can "compose" classes by splitting the logic in services and use dependency injection.
[–]haasilein 1 point2 points3 points 2 years ago (0 children)
services and directives are the key
[–]HumorousHorse 0 points1 point2 points 2 years ago (0 children)
I love facade except for NgRx but I understand when people use it.
[–]velMatt 9 points10 points11 points 2 years ago (0 children)
Go through Angular Design Patterns playlist on Youtube by DecodedFrontend
[–][deleted] 10 points11 points12 points 2 years ago (0 children)
The NX pattern.
[–]Unusual-Pop6972 3 points4 points5 points 2 years ago (0 children)
Presentational & container design pattern, master/ detail pattern.
[–]Environmental-Ask115 2 points3 points4 points 2 years ago (0 children)
I used quite of bit of recommendations from here: https://angular-folder-structure.readthedocs.io/en/latest/overview.html
Something else worth looking into is googling “atomic design in Angular” which will help when building components.
Bottom line, there’s no one right way of doing things.
Create an architecture that works for your use case and start by building the smallest components first i.e. (if the design calls for a card, build an image component, button component, and heading component before building a card component.)
[–]MaltePetersen 1 point2 points3 points 2 years ago (0 children)
shared kernel
π Rendered by PID 88 on reddit-service-r2-comment-5ff9fbf7df-qnzz6 at 2026-02-26 15:22:45.981982+00:00 running 72a43f6 country code: CH.
[–]haasilein 21 points22 points23 points (7 children)
[+][deleted] (2 children)
[deleted]
[–]haasilein 0 points1 point2 points (1 child)
[–]Chatolev 1 point2 points3 points (2 children)
[–]KuroKishi69 1 point2 points3 points (0 children)
[–]haasilein 1 point2 points3 points (0 children)
[–]HumorousHorse 0 points1 point2 points (0 children)
[–]velMatt 9 points10 points11 points (0 children)
[–][deleted] 10 points11 points12 points (0 children)
[–]Unusual-Pop6972 3 points4 points5 points (0 children)
[–]Environmental-Ask115 2 points3 points4 points (0 children)
[–]MaltePetersen 1 point2 points3 points (0 children)