gothinkster / angular-realworld-example-app

Exemplary real world application built with Angular

Home Page:https://angular.realworld.how/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

image

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:

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.