I want to make tabs but I cannot without deleting the tab1-routing.module.ts page and setting the RouterModule in the tab1.module.ts. Is there a way to create a page without the routing-module in it?
Hi,
am I understanding it right, you are asking why the pages are generated the way they are?
Each page has its own module + routing module so it can be easily lazy loaded.
If you do not want this (but want eager loading instead), you can remove its module and include it in the parent (e.g. declare tab-pages with routes in their parent). Or generate it directly without a module:
This is the only part I can say anything about, and I’d say “no”. Angular is very accommodating of project structuring conventions. Feel free to stick with whatever organizational structure you like.