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

20 lines
456 B
TypeScript
Raw Normal View History

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