I've been working on breaking down my Angular app into separate sections and I have a few queries about how to proceed:
auth
login (only public page in the entire system, after login users are directed to either the admin or user portal based on specific variables)
admin-portal
layout (admin portal layout) -component
dashboard (admin portal dashboard) -component
users (user management in admin portal) -component
user-portal
layout (user portal layout) -component
dashboard (user portal dashboard) -component
projects (project management in user portal) -component
- Should I create separate modules for each section with their own routes?
- Can I have components with the same name (e.g. dashboard.component) in multiple modules?
- In my routing plan, I intend to set up admin-portal and user-portal as parent routes with their own AuthGuards, and then define child routes within them.