AngularJS circular dependency problem

the company uses angular to develop front-end projects, and now writes a service, to do login timeout, automatic logout function, and inject services into angular interceptor, but will report circular dependency problems as follows:

excuse me, has anyone ever encountered a similar situation?

Mar.11,2021

found a solution to the problem. In here , change the previous direct injection to $injector indirect injection,

var autoLoginout=$injector.get("autoLoginout");

in this way, the autoLoginout service is injected in to solve the problem

Menu