-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpcsr.module.ts
51 lines (39 loc) · 1.2 KB
/
pcsr.module.ts
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
import { NgModule, ModuleWithProviders } from "@angular/core";
import { CommonModule } from "@angular/common";
import { HttpClientModule } from "@angular/common/http";
import { TranslateModule } from "@ngx-translate/core";
import { IonicModule } from "@ionic/angular";
import { PCSRRoutingModule } from "./pcsr.routing.module";
import { Env } from "app/gc_basic/interfaces/env.interface";
import { PortalConf } from "app/gc_basic/interfaces/portal.interface";
import { BasicModule } from "app/gc_basic/basic.module";
import { PostLabelService } from "./services/post-label.service";
import { PCSRComponentsModule } from "./components/pcsr-components.module";
@NgModule({
entryComponents: [
],
imports: [
PCSRRoutingModule,
IonicModule,
CommonModule,
TranslateModule,
HttpClientModule,
PCSRComponentsModule
],
declarations: [
],
exports: [
],
providers: [
PostLabelService
]
})
export class PCSRModule {
constructor() {}
static forRoot(env: Env, portalConf: PortalConf): ModuleWithProviders<BasicModule> {
return {
ngModule: BasicModule,
providers: [{ provide: "env", useValue: env }, { provide: "portalConf", useValue: portalConf }]
};
}
}