-
0 votesanswersviews
无法在APP_INITIALIZER定义中实例化循环依赖项
我收到错误 Cannot instantiate cyclic dependency! ApplicationRef ("[ERROR ->]"): in NgModule AppModule in ./AppModule@-1:-1 但我不知道Angular 2的新内容 . 问题似乎是在带有APP_INITIALIZER的节提供程序中的NgModule文件app.mod... -
2 votesanswersviews
当我在HttpInterceptor类中注入一个使用HttpClient的服务时,Angular 6进入无限循环依赖循环
我已经在不同的Angular版本中多次发现了这个问题,但是多个消息来源说它已经修复了,例如,Stackoverflow上的另一个类似的问题是this answer,它说它是在Angular 5.2中解决的,some other issues on Github are saying it solved in 6.0.2,我使用的是Angular 6.0.3但是每当我尝试在我的HttpInterce...