How can I provide a service that is not at the root of the application, and use the same instance between several components and other services? Not using providers in routes and not using ng module.
I've tried Environment injector, but didn't get any result
I solved this problem by redesigning the application architecture using nx and decoupling the connections between services: I moved the common methods into a separate regular ts file, in which these methods simply became pure functions. Thanks to everyone for the answers!