How to use ng-dynamic-component across multiple lazy loaded (visited) modules (pages)?
See original GitHub issueWhat I have in my mind is to use available directives from ng-dynamic-component
in the root module without registering (without importing DynamicModule.withComponents)
dynamic components (which are available in some other lazy loaded modules).
Appreciate an example on this.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Manually Lazy Load Modules And Components In Angular
Based on this configuration data, multiple modules and/or components need to be lazy-loaded and its routes dynamically added to the application.
Read more >Dynamic Component Generation in Lazy-Loaded Routes
The application structure for this demo is rather simple. There is a single application module and component. The main app component displays a ......
Read more >Dynamically load Angular component with dependencies
I want to lazy load the modules if the role has permission to see the module, without routing to a different page. –...
Read more >How To Use Lazy Loading Routes in Angular | DigitalOcean
The following covers lazy loading modules in Angular 8+ apps. · Do not import feature modules that should be lazy-loaded in your app...
Read more >Loading Components Dynamically in an Angular App
Managing the correct view only by using *ngIf becomes difficult. These types of scenarios are where dynamic components are helpful. Angular has ...
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
I have come up with my own solution. Below is snippet for your reference. I will not be getting into the details of it.
Closing as this seems to be resolved.