JsonpModule

Experimental Class

Class Overview

class JsonpModule {
}

Class Description

The module that includes jsonp's providers

Annotations

@NgModule({
  providers: [
    // TODO(pascal): use factory type annotations once supported in DI
    // issue: https://github.com/angular/angular/issues/3183
    {provide: Jsonp, useFactory: jsonpFactory, deps: [JSONPBackend, RequestOptions]},
    BrowserJsonp,
    {provide: RequestOptions, useClass: BaseRequestOptions},
    {provide: ResponseOptions, useClass: BaseResponseOptions},
    {provide: JSONPBackend, useClass: JSONPBackend_},
  ],
})

exported from @angular/http/index, defined in @angular/http/src/http_module.ts

doc_Angular
2016-10-06 09:46:39
Comments
Leave a Comment

Please login to continue.