Component loaded via lazy module is not rendering inside named outlet, but outlet is activated correctly
See original GitHub issueWhich @angular/* package(s) are the source of the bug?
router
Is this a regression?
Yes
Description
I swear this used to work in Angular 13.2.2
See README.md in repo
No Router errors when tracing enabled
Please provide a link to a minimal reproduction of the bug
https://github.com/johngrimsey/router-debug
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run ng version
)
No response
Anything else?
Haven’t been able to check in Angular 13.2.2 - but my expectation is that the component should be rendered
Issue Analytics
- State:
- Created a year ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Angular 4 Lazy loading with named router-outlet not working
The workaround or we can say solution to this issue is, use non-empty paths for your top level routes if auxilary(i.e. named) routes...
Read more >Lazy loaded module in named outlet throws error · Issue #12842
have anyone find a temporary workaround for this issue? (goal is to load component in named outlets lazily).
Read more >Lazy-loading feature modules - Angular
To lazy load Angular modules, use loadChildren (instead of component ) in your AppRoutingModule routes configuration as follows. AppRoutingModule (excerpt)
Read more >Angular Navigation: How Routing & Redirects Work in Angular ...
Lazy loading routes. Now the current way our routes are setup makes it so they are included in the same chunk as the...
Read more >Angular Routing Guide: How to optimize app navigation
The key to successful Angular apps is easily navigable pages with routing. Today, we'll learn how to use Angular Router's capabilities.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Similar to https://github.com/angular/angular/issues/46500, your application has broken the parent/child relationship of the router outlets. The
RouterOutlet
in the dialog needs to be a logical child in the element injector tree of the parent.Closing as an issue outside of Angular.
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.