Since updating to Angular 8.1 (8.0 worked), I'm getting a circular dependency warning that doesn't really make sense to me.
I have an Injectable Service SelectService
that is provided in some components. The service is using a class SelectableItem
. When creating an instance of this class, the service itself is passed as an argument.
item = new SelectableItem(
...
this
);
The SelectableItem
class is not Injectable and looks like this.
export class SelectableItem {
constructor(..., public selectService: SelectService) { }
}
Now since the 8.1 update i get a circular dependecy warning:
selectable-item.ts -> select.service.ts -> selectable-item.ts
SelectableItem
is not a service, how can it be a circular dependency?