Very simply I have an AuthenticationService and a UserService. UserService is included in AuthenticationService. Then when I use AuthenticationService in UserService like:
constructor(private authService: AuthenticationService){}
I get:
Circular dependency detected:
src/app/core/authentication/authentication.service.ts -> src/app/shared/services/user.service.ts -> src/app/core/authentication/authentication.service.ts
Both services are declared in the app module providers array. Why am I getting a circular dependency?