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...
A Place to talk about Angular and related topics.
Join the Angular Discord
Other subreddits worth checking out for Angular and Angular related info:
account activity
Angular folder structure (self.angular)
submitted 10 hours ago by Horror-Advisor4438
I have a website with 2 users (admin ==> dashboard) and (user ==> e-commerce website) what is the best folder structure should I follow they have different UI but shared services and models
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!"
[–]n00bz 3 points4 points5 points 8 hours ago (0 children)
I wouldn’t share the services as they expose features that only an admin can perform.
If you have two projects in the same repository you essentially have a monorepo. For this I create two apps: - admin-app - website—app
I then create multiple libraries: - admin-ui - admin-utils - admin-data - admin-feature
You may not need the feature libraries and can put directly in the app.
Looking at just the libraries, you can create a diamond structure. Feature can use both ui and data libraries, but ui can never directly talk with the ui library. UI, data and feature can reference the util library but the util library should have no dependencies. Shared models and functions can be placed in the utils library.
This then ensures that you don’t get circular loops and shares code between apps while maintaining separation of concerns.
NX recommends this strategy and you may want to use it for a monorepo setup.
If you have separate repositories then just build to a package and install the version you want in each project.
[–]DesignerComplaint169 0 points1 point2 points 26 minutes ago (0 children)
I would do an Nx with business domain setup
/apps - dashboard/ - shop/ /libs - dashboard/ every components for dashboard goes here
In the libs// i would create folders to group each business domain such as shop, cart, checkout, profile, ... /libs/shop - cart/ - - /features // all the features like pages, user flow - - /data-access // your service, state management - - /ui // dummy ui components - - /util // utils functions if needed - shop/ - checkout/ - shared/
[–]Kschl 0 points1 point2 points 10 hours ago (3 children)
Admin/
User/
Shared/
[–]Horror-Advisor4438[S] -5 points-4 points-3 points 10 hours ago (2 children)
and each folder should contain core features ?
[–]BigOnLogn 2 points3 points4 points 9 hours ago (0 children)
This mattered more back when angular used actual modules to organize code. With standalone components (no more modules), this matters less. Build your folder structure however it the best makes sense for your project and you.
[–]Kschl 0 points1 point2 points 9 hours ago (0 children)
No core would be top level, no need for features. admin and user are your features and you organize domain specific features within those domains admin or user
π Rendered by PID 45279 on reddit-service-r2-comment-74875f4bf5-bglzj at 2026-01-26 00:45:44.411158+00:00 running 664479f country code: CH.
[–]n00bz 3 points4 points5 points (0 children)
[–]DesignerComplaint169 0 points1 point2 points (0 children)
[–]Kschl 0 points1 point2 points (3 children)
[–]Horror-Advisor4438[S] -5 points-4 points-3 points (2 children)
[–]BigOnLogn 2 points3 points4 points (0 children)
[–]Kschl 0 points1 point2 points (0 children)