I have a problem with lazy loading not about to route to a named router-outlet. Can someone look at where I when wrong? I have a mainpage where there is a link to Product -> default router outlet and Product Detail -> named router outlet.
<div>
<div><a [routerLink]="['product']"> Product </a> </div>
<div><a [routerLink]="['productdetail',{outlets:{productdetail: 'detail'}}]"> Product Detail </a> </div>
<div> <router-outlet></router-outlet></div>
<div> <router-outlet name="detail"></router-outlet>
</div>
Below is the plunker code.
This is known bug, you can track the issue here
The only flaw I can see is, an additional url segment added in routes
MainRoutingModule: Top level non-empty path(i.e. "path: 'load'")
MainpageComponent:The correct syntax to use the secondary routes.
LoginComponent:
Demo:https://plnkr.co/edit/0ZpNL3lvbRbexLzQqRZh?p=preview
Let's say routes are part of profile ProfileComponent (example.com/profile)
profile.component.ts
There are three different components:
Then routes will look like: