ngx-admin/src/app/@core/core.module.ts

17 lines
397 B
TypeScript
Raw Normal View History

2017-04-13 14:24:23 +03:00
import { NgModule, Optional, SkipSelf } from '@angular/core';
import { CommonModule } from '@angular/common';
import { throwIfAlreadyLoaded } from './module-import-guard';
@NgModule({
imports: [
2017-05-06 15:35:15 +03:00
CommonModule,
2017-04-13 14:24:23 +03:00
],
2017-05-06 15:35:15 +03:00
declarations: [],
2017-04-13 14:24:23 +03:00
})
export class CoreModule {
constructor(@Optional() @SkipSelf() parentModule: CoreModule) {
throwIfAlreadyLoaded(parentModule, 'CoreModule');
}
}