next-ucap-messenger/projects/ucap-webmessenger-protocol-inner/src/lib/ucap-inner-protocol.module.ts

20 lines
456 B
TypeScript

import { NgModule, ModuleWithProviders } from '@angular/core';
import { InnerProtocolService } from './services/inner-protocol.service';
const SERVICES = [InnerProtocolService];
@NgModule({
declarations: [],
imports: [],
exports: []
})
export class UCapInnerProtocolModule {
public static forRoot(): ModuleWithProviders<UCapInnerProtocolModule> {
return {
ngModule: UCapInnerProtocolModule,
providers: [...SERVICES]
};
}
}