the issue with my code was i was import http in my provider file which was not at all reuired in my app so i removed the import…and it solved the issue.
And if you are using import http…then you should import HttpModule in the app.module.ts it will solve the issue.
import { HttpModule } from '@angular/http';
....
imports:[..., HttpModule],..