Angular exported component from module not useable in another module
问题 I am exporting a custom component in my AppModule but can not use it in another module, which is being imported in the AppModule. I thought exported components are visible globally? I am trying to use the CalendarComponent with the selector 'app-calendar' in a component within the TestModule. app.module.ts @NgModule({ declarations: [ ... , CalendarComponent, ], imports: [ ... , TestModule, ], exports: [ ... CalendarComponent, ], providers: [ ... ], bootstrap: [AppComponent] }) test.module.ts