I just tried to cleanup an angular 10 stackblitz by removing the entryComponents
, but that broke the whole app
@NgModule({
imports: [ BrowserModule ],
declarations: [ AppComponent, TestComponent ],
entryComponents: [ TestComponent ]
})
export class AppModule {
constructor(private injector: Injector) {
const customElement = createCustomElement(TestComponent, { injector });
customElements.define('test-ce', customElement);
}
ngDoBootstrap() { }
}
Any suggestions what the reason might be that this property is still needed?