You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
When I navigate to / the correct NavbarComponent shows up on the router-outlet named 'navbar'. However, when I navigate to /app/dashboard the AppCentralNavbarComponent does not show up on the router-outlet named 'navbar', instead the error:
ERROR Error: Uncaught (in promise): Error: Cannot activate an already activated outlet
Error: Cannot activate an already activated outlet
Expected behavior is to navigate router-outlets regardless of outlet name to the correct component based on the window path.
Minimal reproduction of the problem with instructions
STEPS TO REPRODUCE *
Create routing as above in app.routing.ts.
Create a submodule as above in app-central.routing.ts
Navigate to /app/dashboard and see if the navbar outlet changes.
What is the motivation / use case for changing the behavior?
Need to change the navbar based on the URL of the open window. The navbar will need to be different per the route.
Environment
Angular version: ^4.0.0
Browser:
- [x ] Chrome (desktop) version 63
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
The text was updated successfully, but these errors were encountered:
wakawaka54
changed the title
Router not navigating with router-outlets
Named Router-Outlets are not navigating with window url
Sep 1, 2017
wakawaka54
changed the title
Named Router-Outlets are not navigating with window url
Named Router-Outlets are not navigating with window url [Router]
Sep 1, 2017
wakawaka54
changed the title
Named Router-Outlets are not navigating with window url [Router]
Named Router-Outlets are not navigating with window url [Hopefully Simple]
Sep 1, 2017
I figured it out, I had to make the Navbar route more restrictive because it was being picked up even with /app/dashboard. The new app.routing.ts is as follows:
I'm submitting a...
Current behavior
When I navigate to / the correct NavbarComponent shows up on the router-outlet named 'navbar'. However, when I navigate to /app/dashboard the AppCentralNavbarComponent does not show up on the router-outlet named 'navbar', instead the error:
ERROR Error: Uncaught (in promise): Error: Cannot activate an already activated outlet
Error: Cannot activate an already activated outlet
is thrown.
app.routing.ts
app-central.routing.ts
standard-layout.component.html
Expected behavior
Expected behavior is to navigate router-outlets regardless of outlet name to the correct component based on the window path.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Need to change the navbar based on the URL of the open window. The navbar will need to be different per the route.
Environment
The text was updated successfully, but these errors were encountered: