I have created a Base Model in which I have all the common functions to fetch data and post or put the data. Actually what a service does in Angular but I don\'t want a serv
Ugly solution which works in Angular 2.1
import {ReflectiveInjector} from '@angular/core';
import {Http, HttpModule} from "@angular/http";
const providers = (HttpModule).decorators[0].args[0].providers;
const injector = ReflectiveInjector.resolveAndCreate(providers);
const http = injector.get(Http);