I tried to reproduce the problem in a stackblitz, but I do not have the warning in the blitz..
Basically,
my-module.module.ts import a component, so depend on it
import { MyComponentComponent } from './my-component/my-component.component';
the component, use a service
import { MyServiceService } from '../my-service.service';
the service has
@Injectable({
providedIn: MyModuleModule
})
so depend on the module
import { MyModuleModule } from './my-module.module';
it looks circular to me, but where in my app I have warning, I do not have in stackblitz.
Is this correct implementation?
A fix would be remove the
@Injectable({
providedIn: MyModuleModule
})
But does this make my service provided in every module? or none of them?