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

20 lines
450 B
TypeScript
Raw Normal View History

2019-09-18 06:02:21 +00:00
import { NgModule, ModuleWithProviders } from '@angular/core';
import { RoomProtocolService } from './services/room-protocol.service';
const SERVICES = [RoomProtocolService];
@NgModule({
declarations: [],
imports: [],
exports: []
})
export class UCapRoomProtocolModule {
public static forRoot(): ModuleWithProviders<UCapRoomProtocolModule> {
return {
ngModule: UCapRoomProtocolModule,
providers: [...SERVICES]
};
}
}