20 lines
456 B
TypeScript
20 lines
456 B
TypeScript
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]
|
|
};
|
|
}
|
|
}
|