I found a way to do this via Injector.resolveAndCreate. If there is there a cleaner way than executing this in the constructor?
var injector = Injector.resolveAndCreate([
HTTP_PROVIDERS]);
var http = injector.get(Http);
I found a way to do this via Injector.resolveAndCreate. If there is there a cleaner way than executing this in the constructor?
var injector = Injector.resolveAndCreate([
HTTP_PROVIDERS]);
var http = injector.get(Http);