"this.appInits[i]" is not a function "this.appInits[i]" is not a function angular angular

"this.appInits[i]" is not a function


I think this is because you need to return the function in your export function statement:

export function apiConfigProvider(config: ApiConfig) {   return () => config.loadConfig();}