Angular 4: Cannot instantiate cyclic dependency! InjectionToken_HTTP_INTERCEPTORS

后端 未结 3 1188
生来不讨喜
生来不讨喜 2020-12-18 22:30

I know, this question may sound duplicate and I have tried everything found on stackover flow unable to resolve this problem, so please bear with me

To make

3条回答
  •  情歌与酒
    2020-12-18 22:44

    You have to modify your response-interceptor.service.ts

    import { Injectable,Inject, Injector } from '@angular/core';
    
    constructor( inj: Injector) { 
       this._globalFunctionService=inj.get(GlobalFunctionService)
     }
    

    You can get more info From this link

提交回复
热议问题