import { MyComponentModule } from 'your/file/path'; @NgModule({ imports: [MyComponentModule] declarations: [AppComponent], providers: [], bootstrap: [AppComponent] }) export class AppModule {}