import { CommonModule } from '@angular/common' ; import { ModuleWithProviders , NgModule } from '@angular/core' ; import { Configuration } from '../app.constants' ; @ NgModule ( { imports : [ CommonModule ] , } ) export class CoreModule { static forRoot ( ) { return { ngModule : CoreModule , providers : [ Configuration ] , } ; } }