Within my root module, I have a service that is shared among all components. One of these components is named ComponentX
module
providers: [
BiesbroeckHttpService
],
component
constructor(private biesbroeckHttpService: BiesbroeckHttpService){}
Sometimes, depending on a variable's value within ComponentX, I need to isolate the service to prevent it from using the shared instance in the module. This is necessary for running parallel subscriptions.
Despite hours of searching and attempts, I am still unsure how to achieve this.
I would greatly appreciate any help or guidance you can provide.