I abstracted some functionality from a component into a separate service, and injected the service into my component in order to use it. The problem I am facing now is that within my service, I need access to an object in my component.
How do I pass this object into my service. Is there a way to inject this object with a custom InjectionToken?
Thanks for any help!
stackblitz example - commented out inflicting code in service