Injector Error “Provider parse errors: Cannot instantiate cyclic dependency!”

前端 未结 3 2014
一整个雨季
一整个雨季 2021-01-02 13:37

I tried to create an HttpInterceptor to add some headers for authorization to every http that happens. I need to get the headers from a service called

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-02 13:58

    Remove AuthService from providers list as it is imported in the Interceptor already thus the cyclic dependency.

提交回复
热议问题