Just list all the components in bootstrap (and declarations )
@NgModule({ imports: [ BrowserModule ], declarations: [ App, ModalComponent, CompComponent], providers: [SharedService], entryComponents: [CompComponent], bootstrap: [ App, ModalComponent ] }) export class AppModule{}
See also. How to dynamically create bootable modals as Angular2 components? for a complete example.
source share