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