openaire-library/utils/configuration/configurationService.module.ts

24 lines
515 B
TypeScript

import { NgModule} from '@angular/core';
import { CommonModule } from '@angular/common';
import { SharedModule } from '../../shared/shared.module';
import { ConfigurationService } from './configuration.service';
@NgModule({
imports: [
SharedModule,
CommonModule
],
providers:[ ConfigurationService]
})
export class ConfigurationServiceModule {
static forRoot() {
return {
ngModule: ConfigurationServiceModule,
providers: [ ConfigurationService ]
}
}
}