As I understand, the angular router lazy loading works from a url segment.
For example in the live example of docs, you have crisis-center in a separate module and the routes from his components hang of ‘www.server.org/crisis-center/’…
But what about if you want to have the crisis-center components without hanging on ‘www.server.org/crisis-center’ url segment??
For example ‘www.server.org/crisis-center’ pointed to CrisisListComponent and ‘www.server.org/crisis-admin’ pointed to CrisisAdminComponent
I can’t find a way to point the two routes to the same lazy loaded module …
Someone knows any way to use lazy loading without lost a url sement?
Other example:
Let's see this question: Multiple Components from Same Lazy Route Not Working
The solution is to make a single lazy route:
{ path: 'Lazy', loadChildren: './+lazy/lazy.module#LazyModule' }
Then you can use www.asdf.com/Lazy/Page30 and www.asdf.com/Lazy/Page31, the first segment of the url (lazy) is lost...
Is there some way to use www.asdf.com/Page30 and www.asdf.com/Page31 using lazy loading with the same lazy module??