import { APP_INITIALIZER } from '@angular/core' ; import { ConfigService } from '@app/core' ; export function getConfigJson ( config ) { return ( ) => config . load ( 'config.json' ) ; } export const INITIALIZER = { provide : APP_INITIALIZER , useFactory : getConfigJson , deps : [ ConfigService ] , multi : true } ;