Angular (v5) service is getting constructed before APP_INITIALIZER promise resolves

I had also a simmilar issue what solved the issue for me was to use Observable methods and operators to do everything. Then in the end just use the toPromise method of the Observable to return a Promise. This is also simpler because you don’t need to create a promise yourself. The AppConfig service will … Read more