We need Auth Service code as we are pusing using RestAngular in side AuthService. Herewith I am sharing the code to inject Restangular using constructor.
`import { Injectable } from '@angular/core';
import { Restangular } from 'ngx-restangular';
@Injectable({
providedIn: 'root'
})
export class AuthService {
constructor(private restangular: Restangular) {
}
}
`
Now I am not able to use this AuthService from addErrorInterceptor as getting Cyclic Dependancy.
Please share your auth service code if possible,
We need Auth Service code as we are pusing using RestAngular in side AuthService. Herewith I am sharing the code to inject Restangular using constructor.
`import { Injectable } from '@angular/core';
import { Restangular } from 'ngx-restangular';
@Injectable({
providedIn: 'root'
})
export class AuthService {
constructor(private restangular: Restangular) {
}
}
`
Now I am not able to use this AuthService from addErrorInterceptor as getting Cyclic Dependancy.
Please share your auth service code if possible,