When i am trying to inject Jsonp, i am seeing this error
Exception: Call to Node module failed with error: Error: Uncaught (in promise): Error: No provider for ConnectionBackend! Error: No provider for ConnectionBackend! at Error (native)
My home.component.ts file
import { NgModule, Component, Injectable } from '@angular/core';
import { HttpModule, JsonpModule, Jsonp, Response, URLSearchParams, Headers, RequestOptions } from '@angular/http';
@Component({
selector: 'home',
templateUrl: './home.component.html',
providers: [HttpModule, JsonpModule, Jsonp]
})
@Injectable()
export class HomeComponent {
public jsonp: Jsonp;
constructor(jsonp: Jsonp) {
this.jsonp = jsonp;
}
Please help me in resolving this issue.