“message”: "Can’t resolve all parameters for AppComponent in c:/Code/SPA/mystore/src/app/app.component.ts
‘DebugConfig’ only refers to a type, but is being used as a value here.
解決辦法
在app module裡定義一個abstract class:
在NgModule的providers裡定義這個injectable objects:
此時在Component裡就可以注入DebugConfig了: