Is there a way get an instance of an injectable service of angular 2 just by the service name?
For Example, in Angular 1 you could write:
var service = $injector.get('ServiceName');
and the service
variable would get an instance of the service.
I'd really appreciate your help guys!
Injector.get
is deprecated as of version 4 – Kolk