1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| import { NgModule, Optional, SkipSelf } from '@angular/core';
| import { throwIfAlreadyLoaded } from './module-import-guard';
| import { AlainThemeModule } from '@delon/theme';
|
| import { I18NService } from './i18n/i18n.service';
| import { _HttpClient } from '@delon/theme/services/http/http.client';
|
| @NgModule({
| imports: [
| AlainThemeModule.forRoot()
| ],
| providers: [
| I18NService, _HttpClient
| ]
| })
| export class CoreModule {
| constructor( @Optional() @SkipSelf() parentModule: CoreModule) {
| throwIfAlreadyLoaded(parentModule, 'CoreModule');
| }
| }
|
|