mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-18 08:20:13 +01:00
17 lines
395 B
TypeScript
17 lines
395 B
TypeScript
|
|
import { NgModule, Optional, SkipSelf } from '@angular/core';
|
||
|
|
import { CommonModule } from '@angular/common';
|
||
|
|
|
||
|
|
import { throwIfAlreadyLoaded } from './module-import-guard';
|
||
|
|
|
||
|
|
@NgModule({
|
||
|
|
imports: [
|
||
|
|
CommonModule
|
||
|
|
],
|
||
|
|
declarations: []
|
||
|
|
})
|
||
|
|
export class CoreModule {
|
||
|
|
constructor(@Optional() @SkipSelf() parentModule: CoreModule) {
|
||
|
|
throwIfAlreadyLoaded(parentModule, 'CoreModule');
|
||
|
|
}
|
||
|
|
}
|