I'm creating a micro-frontend application. I have a container application in Angular. When I am injecting the selectors of the child applications to the container application it's working. But I need to run the child application alone when I hit the URL. It becomes possible through specifying the Appcomponent in bootstrap (bootstrap: [AppComponent]). But while using micro frontend we use entryComponent. When I am trying to use both there is a conflict. Is there any way I can independently run each of the applications and still have the capability of micro UI concept?
bootstrap: [],
entryComponents:[
ShareDetailsComponent
]
})
export class AppModule {
constructor(private injector: Injector){
}
ngDoBootstrap() {
const myCustomElement = createCustomElement(ShareDetailsComponent, { injector: this.injector });
customElements.define('app-share-details', myCustomElement);
}
}