1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
| import { NgModule } from '@angular/core';
| import { CommonModule } from '@angular/common';
| import { ReactiveFormsModule, FormsModule } from '@angular/forms';
| import { RouterModule } from '@angular/router';
| // delon
| import { NgZorroAntdExtraModule } from 'ng-zorro-antd-extra';
| import { AlainThemeModule } from '@delon/theme';
| import { AlainACLModule } from '@delon/acl';
| import { ZORROMODULES, ABCMODULES } from '../delon.module';
| // i18n
| import { TranslateModule } from '@ngx-translate/core';
|
| // region: third libs
| import { CountdownModule } from 'ngx-countdown';
| const THIRDMODULES = [ CountdownModule ];
| // endregion
|
| // region: your componets & directives
| const COMPONENTS = [];
| const DIRECTIVES = [];
| // endregion
|
| @NgModule({
| imports: [
| CommonModule,
| FormsModule,
| RouterModule,
| ReactiveFormsModule,
| ...ZORROMODULES,
| NgZorroAntdExtraModule,
| AlainThemeModule.forChild(),
| ...ABCMODULES,
| AlainACLModule,
| // third libs
| ...THIRDMODULES
| ],
| declarations: [
| // your components
| ...COMPONENTS,
| ...DIRECTIVES
| ],
| exports: [
| CommonModule,
| FormsModule,
| ReactiveFormsModule,
| RouterModule,
| ...ZORROMODULES,
| NgZorroAntdExtraModule,
| AlainThemeModule,
| ...ABCMODULES,
| // i18n
| TranslateModule,
| // third libs
| ...THIRDMODULES,
| // your components
| ...COMPONENTS,
| ...DIRECTIVES
| ]
| })
| export class SharedModule { }
|
|