Pages divided on module?
js2me opened this issue · comments
Sorry, I have a question about dividing routes on modules
Each module load separately ?
When we're going to our app we're loading Home module and If we're going to Setting page and we're loading Settings module, it is?
@truefunrun Hey. Yep, pretty much. Usually you structure you Angular application in different feature areas, just as in this app:
Each of these modules might then also contribute its own routings via RouterModule.forChild([...])
, and might even be lazy loaded. Here are some links which are helpful:
- https://angular.io/guide/router#refactor-the-routing-configuration-into-a-routing-module
- https://angular.io/guide/lazy-loading-ngmodules
Note, this repo isn't yet structured according to the "Router Module Pattern" (as suggested here). That can be future work 😉
Let me know if you have any further questions. Closing the issue for now, but feel free to open it again in case.
@juristr thank you!