![](/img/trans.png)
[英]Type passed in is not ComponentType, it does not have 'ɵcmp' property. Routing not injecting into AngularRouter using config service injection
我正在使用應用初始化程序在啟動之前嘗試從數據庫中填充路由。 它應該非常簡單,但我收到了上面的錯誤,我不知道為什么。 傳入的類型不是 ComponentType,它沒有 'ɵcmp' 屬性。 它似乎繪制了路線,控制台日志實際上有回復。 只是當我單擊鏈接或嘗試直接路由到我的動態路由之一時它會失敗。 在 ...