fengxiang
2018-03-23 c8d8b2d3cf0807f46d1d365da0560b25a1a73ae7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { NgModule, Optional, SkipSelf } from '@angular/core';
import { throwIfAlreadyLoaded } from './module-import-guard';
 
import { I18NService } from './i18n/i18n.service';
 
@NgModule({
    providers: [
        I18NService
    ]
})
export class CoreModule {
  constructor( @Optional() @SkipSelf() parentModule: CoreModule) {
    throwIfAlreadyLoaded(parentModule, 'CoreModule');
  }
}