I'm submitting a ...
Current behavior
I have some routes like:
const routes = [
{ path: "", component: HomeComponent, pathMatch: "full" },
{ path: "profile", component: ProfileComponent },
{ path: "menu", component: MenuComponent, outlet: "sidebar" },
];
When the route http://localhost/(sidebar:menu) is open, then I'm able to remove the named outlet and go to http://localhost/ by clicking an anchor like the following:
<a [routerLink]="['', {outlets: {sidebar: null}}]">
Close
</a>
What doesn't work is navigating away from the sidebar and also going to another route like http://localhost/profile.
<a [routerLink]="['/profile', {outlets: {sidebar: null}}]">
Close
</a>
The link that is rendered is http://localhost:3971/profile(sidebar:menu)
Expected behavior
The link that should be rendered is http://localhost:3971/profile.
Repro
https://github.com/tinchou/router-repro
Please tell us about your environment:
Windows 10, Visual Studio 2017
I'm submitting a ...
Current behavior
I have some routes like:
When the route
http://localhost/(sidebar:menu)is open, then I'm able to remove the named outlet and go tohttp://localhost/by clicking an anchor like the following:What doesn't work is navigating away from the sidebar and also going to another route like
http://localhost/profile.The link that is rendered is
http://localhost:3971/profile(sidebar:menu)Expected behavior
The link that should be rendered is
http://localhost:3971/profile.Repro
https://github.com/tinchou/router-repro
Please tell us about your environment:
Windows 10, Visual Studio 2017
Angular version: 2.3.1 (didn't work with 2.1.0 either)
Browser: all
Language: TypeScript 2.0.10