I have read a lot of articles regarding this subject, but am still having trouble processing that matter. Sorry if it is a duplicate, regardless!
So basically, I am building an Angular app from scratch, and I want to organize my code as per the best convention. I have a core module, that currently includes a generic data access singleton service, and an auth service that uses it. What I can't grasp is, when should I make a feature module, and when that functionality belongs to the core module.
Core Module tree:
Auth, for example, sounds like app core, but in my case it would also include some declarations (components, etc.), and would probably need to import some UI atoms/molecules from a shared module. Does it deserve a feature module, imported directly in the root module? Should I let the core module export the auth module's declarations? Or should I separate the providers for auth (core module) and make another auth feature module (for the declarations)?
Same goes for layout module, modal module, etc.
Thanks!
