fengxiang
2018-08-02 c69ddde7828d777f04c6468c269aaa0aa03d72c9
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 '@core/module-import-guard';
 
import { I18NService } from '@core/i18n/i18n.service';
 
@NgModule({
    providers: [
        I18NService
    ]
})
export class CoreModule {
  constructor( @Optional() @SkipSelf() parentModule: CoreModule) {
    throwIfAlreadyLoaded(parentModule, 'CoreModule');
  }
}