You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to provide a service both directly and via a provider token.
Both need to inject the same instance.
For this use case, angular implements a ExistingProvider.
Currently this is only possible by implementing a manual singleton pattern through a factory function.
It would be awesome to see the ExistingProvider in nestjs too and would further reduce differences to angular.
Thanks.
The text was updated successfully, but these errors were encountered:
Feature Request
I need to provide a service both directly and via a provider token.
Both need to inject the same instance.
For this use case, angular implements a ExistingProvider.
Currently this is only possible by implementing a manual singleton pattern through a factory function.
It would be awesome to see the ExistingProvider in nestjs too and would further reduce differences to angular.
Thanks.
The text was updated successfully, but these errors were encountered: