We all know that in AngularJS service are singletons. Since then when you do this $injector.get('foo') you will get an instance of this service and its constructor would be invoked + object would be added into injector's cache for the reason because it is the singleton.
Anyway, are there any methods that I can utilize for removing service in that cache for re-creating service again? Using factory solves this but anyway.
To reset a service, you can expose a function that invoke the service again.
PLUNKER
Service
Then you can use it everywhere like
With ES6 classes you can do something like this: