Is there a way to get an instance of an angular 2 injection service only by service name?
For example, in angular 1 you can write:
var service = $injector.get('ServiceName');
and the variable servicewill receive an instance of the service.
I would really appreciate your help!
source
share