[英]Angular 8, NgOidcClientModule loading configuration via APP_INITIALIZER
[英]Angular Page is Not loading after adding APP_INITIALIZER (Configuration Service)
正如how-to-call-an-rest-api-while-bootstrapping-angular-2-app 中提到的,我已經實施了更改並能夠查看配置加載日志。
但是頁面沒有加載,當我從 app.module.ts 中刪除 APP_INITIALIZER 提供程序時,頁面正在加載。
有沒有人遇到過這個問題?
傻我...
我忘記在 ConfigService 中設置resolve(true)
。 設置resolve(true)
,頁面正在加載。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.