-
Notifications
You must be signed in to change notification settings - Fork 25.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose emptyRouterOutlet for lazy loaded auxiliary routes #24657
Comments
Today I also ran into this problem, while I'm not yet on the 6.1.0-beta version I'm glad to see you already tested it and found out that my exact use case hasn't been covered by the fixes yet. The only workaround I've so far had success with is the following one:
|
… router config setup Fixes angular#24657
Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends. Find more details about Angular's feature request process in our documentation. |
Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage. We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package. You can find more details about the feature request process in our documentation. |
Hey @mhartington, is this issue still relevant? angular/packages/router/src/utils/config.ts Lines 167 to 170 in 1da3a05
The code for the fixed issue you linked is above. It happens as part of a config standardization when providing routes. If ionic were to implement a similar config standardization such that you use your own |
I'm actually going to close this per my comment above. There are ways to work around this by preventing the componentless aux routes not happen by transforming the routes before the Angular Router gets ahold of them. Then the |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I'm submitting a...
Current behavior
Continuing the discussion in #10981, per @jasonaden's request
Right now, the fix for lazy-loaded auxiliary routes is an internal one, directly tied to
routerOutlet
. While this is fine for vanilla Angular Apps, Frameworks built on top of Angular, Ionic in this instance, are not able to take advantage of the fix, as ourion-router-outlet
is a customizedrouter-outlet
.Expected behavior
The logic used to fix lazy loaded routes internally should be exposed, or configurable for downstream frameworks.
Minimal reproduction of the problem with instructions
Since this is Ionic specific, I've created a sample project
https://github.com/mhartington/lazy-loaded-tabs
What is the motivation / use case for changing the behavior?
The motivation would be for other frameworks using Angular's Router to hook into the EmptyRouterOutlet, but not directly use RouterOutlet.
Environment
The text was updated successfully, but these errors were encountered: