beteran-backend-app-browser/src/app/core/core.module.ts
2022-06-28 16:40:33 +09:00

22 lines
645 B
TypeScript

import { NgModule, Optional, SkipSelf } from '@angular/core';
import { AuthModule } from 'app/core/auth/auth.module';
import { IconsModule } from 'app/core/icons/icons.module';
import { TranslocoCoreModule } from 'app/core/transloco/transloco.module';
@NgModule({
imports: [AuthModule, IconsModule, TranslocoCoreModule],
})
export class CoreModule {
/**
* Constructor
*/
constructor(@Optional() @SkipSelf() parentModule?: CoreModule) {
// Do not allow multiple injections
if (parentModule) {
throw new Error(
'CoreModule has already been loaded. Import this module in the AppModule only.'
);
}
}
}