I need to get an instance of Http without using Angular2's DI ( constructor(private http: Http) )
The following code was taken from another stackoverflow question, and it works in Angular2 RC.4 and earlier versions, but not in RC.5+(HTTP_PROVIDERS is no longer available) :
const injector = ReflectiveInjector.resolveAndCreate([
HTTP_PROVIDERS
]);
this.http = injector.get(Http);
There are several questions here on Stackoverflow with different variants of that same code, but none of them works in RC.5+.
Does anybody know of how to perform that same thing in RC.5+?