20 lines
468 B
TypeScript
20 lines
468 B
TypeScript
import { NgModule, ModuleWithProviders } from '@angular/core';
|
|
|
|
import { ServiceProtocolService } from './services/service-protocol.service';
|
|
|
|
const SERVICES = [ServiceProtocolService];
|
|
|
|
@NgModule({
|
|
declarations: [],
|
|
imports: [],
|
|
exports: []
|
|
})
|
|
export class UCapServiceProtocolModule {
|
|
public static forRoot(): ModuleWithProviders<UCapServiceProtocolModule> {
|
|
return {
|
|
ngModule: UCapServiceProtocolModule,
|
|
providers: [...SERVICES]
|
|
};
|
|
}
|
|
}
|