HttpClientJsonpModule

class

npm Package @angular/common
Module import { HttpClientJsonpModule } from '@angular/common/http';
Source common/http/src/module.ts

Overview

class HttpClientJsonpModule {
}

Description

NgModule which enables JSONP support in HttpClient.

Without this module, Jsonp requests will reach the backend with method JSONP, where they'll be rejected.

Annotations

@NgModule({ providers: [ JsonpClientBackend, { provide: JsonpCallbackContext, useFactory: jsonpCallbackContext }, { provide: HTTP_INTERCEPTORS, useClass: JsonpInterceptor, multi: true }, ] })

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v4.angular.io/api/common/http/HttpClientJsonpModule