I can do the following:
@NgModule({
imports: [BrowserModule],
declarations: [AppComponent, BComponent],
bootstrap: [AppComponent, BComponent] <
Am I just going to have two trees of components with a single injector
Yes, you will have two independent root trees. They will be registered under ApplicationRef.views
and when ApplicationRef.tick()
function will be called Angular will run change detection for both trees. It will be single application and they will share the injector defined for the AppModule
.