This is the archived documentation for Angular v5. Please visit angular.io to see documentation for the current version of Angular.

JsonpModule

npm Package @angular/http
Module import { JsonpModule } from '@angular/http';
Source http/src/http_module.ts

Deprecation Notes

use @angular/common/http instead

Overview

      
      class JsonpModule {
}
    

Description

The module that includes jsonp's providers

Annotations

      
      @NgModule({
    providers: [
        { provide: Jsonp, useFactory: jsonpFactory, deps: [JSONPBackend, RequestOptions] },
        BrowserJsonp,
        { provide: RequestOptions, useClass: BaseRequestOptions },
        { provide: ResponseOptions, useClass: BaseResponseOptions },
        JSONPBackend,
    ]
})