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
{{ message }}
Repository navigation
Setting named outlet to null with router does not work聽#35732
Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please check out our submission guidelines to understand why we can't act on issues that are lacking important information.
If the problem still exists in your application, please open a new issue and follow the instructions in the issue template, including a minimal reproduction in either Stackblitz or a minimal GitHub repo.
Hello, please re-open this issue, I have already attached a zip file of an Angular app which reproduces the problem and I also explained what the problem was in the 'description' section.
@atscott This might be an actual bug, and you are ignoring it. For someone in your position, shame on you. For any projects in the future, I will consider using Vue.js instead. 馃槨
Since reporting this, I have also discovered another bug just now which seems to be affecting ~320k people. Someone may have already reported this, but the issue was probably closed just like this one without any second thought by some snobby individual.
@olfek first of all, I understand that you are frustrated, but let me please remind you of our code of conduct (https://github.com/angular/code-of-conduct). We will not tolerate any further threats or personal attacks against out team members or community members.
I'm reopening the issue since you provided additional info. We however need more. Can you please add a textual description of:
I did not make any threats or carry out any personal attacks, I simply expressed my frustration with the way a new issue was closed immediately without any discussion opportunity. If what I experienced is standard procedure, you are missing out on a lot of valuable real bug reports, I would recommend reviewing your processes and members actions or risk having the community relationship that react native has.
Anyway, thank you for re-opening the issue, I will address the requested information below.
See the GIF on how to reproduce the bug (the app has been uploaded here, see link above).
The second button, which uses this.router.navigate([{ outlets: { popup: null }}]); should have the same/similar behavior as the first button routerLink="..".
Just now, I needed to use this (programmatic navigation to named outlet) again, I have discovered that not only does setting it to null not work, setting it to an actual path doesn't work either.
There is a difference between trying to navigate to 'null' from within the component that is active in the secondary outlet and doing the same thing outside of it. The latter just works. So the workaround is to host a hidden <a [routerLink]> outside of the secondary outlet and to have a service click it programmatically. Another way is to just call 'router.navigate()' but that simply didn't work for me.
Activity
atscott commentedon Feb 27, 2020
Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please check out our submission guidelines to understand why we can't act on issues that are lacking important information.
If the problem still exists in your application, please open a new issue and follow the instructions in the issue template, including a minimal reproduction in either Stackblitz or a minimal GitHub repo.
olfek commentedon Feb 27, 2020
Hello, please re-open this issue, I have already attached a zip file of an Angular app which reproduces the problem and I also explained what the problem was in the 'description' section.
olfek commentedon Feb 27, 2020
@atscott If you download the zip file and run the app, you'll be able to see the problem in action.
olfek commentedon Feb 29, 2020
@atscott This might be an actual bug, and you are ignoring it. For someone in your position, shame on you. For any projects in the future, I will consider using Vue.js instead. 馃槨
olfek commentedon Feb 29, 2020
Since reporting this, I have also discovered another bug just now which seems to be affecting ~320k people. Someone may have already reported this, but the issue was probably closed just like this one without any second thought by some snobby individual.
olfek commentedon Feb 29, 2020
@atscott See the bug in action below.
IgorMinar commentedon Feb 29, 2020
@olfek first of all, I understand that you are frustrated, but let me please remind you of our code of conduct (https://github.com/angular/code-of-conduct). We will not tolerate any further threats or personal attacks against out team members or community members.
I'm reopening the issue since you provided additional info. We however need more. Can you please add a textual description of:
olfek commentedon Feb 29, 2020
I did not make any threats or carry out any personal attacks, I simply expressed my frustration with the way a new issue was closed immediately without any discussion opportunity. If what I experienced is standard procedure, you are missing out on a lot of valuable real bug reports, I would recommend reviewing your processes and members actions or risk having the community relationship that react native has.
Anyway, thank you for re-opening the issue, I will address the requested information below.
this.router.navigate([{ outlets: { popup: null }}]);should have the same/similar behavior as the first buttonrouterLink="..".1 remaining item
olfek commentedon Mar 26, 2020
Just now, I needed to use this (programmatic navigation to named outlet) again, I have discovered that not only does setting it to null not work, setting it to an actual path doesn't work either.
gunsh commentedon Apr 24, 2020
I found an ugly but effective workaround. This is a demo that demonstrate this issue as I have seen it: https://stackblitz.com/edit/angular-spzbc3
There is a difference between trying to navigate to 'null' from within the component that is active in the secondary outlet and doing the same thing outside of it. The latter just works. So the workaround is to host a hidden <a [routerLink]> outside of the secondary outlet and to have a service click it programmatically. Another way is to just call 'router.navigate()' but that simply didn't work for me.
I hope this saves someone some precious time.
atscott commentedon May 26, 2020
Related issue: #13523
atscott commentedon May 26, 2020
Closing as duplicate of #15718. Example from this issue also copied to stackblitz and included here: #15718 (comment)
angular-automatic-lock-bot commentedon Jun 27, 2020
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.