2019-12-15 18:07:25 +09:00
|
|
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
|
|
|
|
|
|
|
import { DaesangCipherService } from './services/daesang-cipher.service';
|
2019-12-15 21:36:12 +09:00
|
|
|
import { DaesangProtocolService } from './services/daesang-protocol.service';
|
2019-12-17 11:44:59 +09:00
|
|
|
import { DaesangApiService } from './services/daesang-api.service';
|
2019-12-15 18:07:25 +09:00
|
|
|
|
2019-12-17 11:44:59 +09:00
|
|
|
const SERVICES = [
|
|
|
|
DaesangCipherService,
|
|
|
|
DaesangProtocolService,
|
|
|
|
DaesangApiService
|
|
|
|
];
|
2019-12-15 18:07:25 +09:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
declarations: [],
|
|
|
|
imports: [],
|
|
|
|
exports: []
|
|
|
|
})
|
|
|
|
export class UCapDaesangModule {
|
|
|
|
public static forRoot(): ModuleWithProviders<UCapDaesangModule> {
|
|
|
|
return {
|
|
|
|
ngModule: UCapDaesangModule,
|
|
|
|
providers: [...SERVICES]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|