This is an example repo that demos how to dynamically load components in a lazy loaded module in Angular 2+
This almost entirely relies on @jmcclanahan's answers in this thread: angular/angular#14324
[AppComponent]
|
|
V
[HomeComponent] (lazyloaded)
|
|
V
[DynamicModule] ---> (Conditionally loads CompA or B)
| |
| |
V V
[ComponentA] [ComponentB]