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