wags1999 / angular-hmr-lazy-components

This example shows how Angular HMR can be used to automatically reload lazy routes and lazy (dynamically-loaded) components. This can be extremely helpful for large Angular apps that take a while to JIT compile when they reload.
MIT License
47 stars 13 forks source link

Use component's module Injector for creating component #3

Closed montella1507 closed 5 years ago

montella1507 commented 5 years ago

Component's module Injector should be used despite of caller's context Injector.

e.g. lazyModuleA.injector should be used and not DashboardModule.injector