import { APP_INITIALIZER , ModuleWithProviders , NgModule } from '@angular/core' ; import { SharedModule } from '../shared/module' ; import { Components } from './components' ; import { LocalStorageService , SessionStorageService , StrategyIndex } from '../lib' ; @ NgModule ( { imports : [ SharedModule , ] , exports : [ ... Components ] , declarations : [ ... Components ] , providers : [ ] } ) export class EagerModule { constructor ( storage ) { } static forRoot ( ) { return { ngModule : EagerModule , providers : [ ] } ; } }