HttpModule

Experimental Class

Class Overview

class HttpModule {
}

Class Description

The module that includes http's providers

Annotations

@NgModule({
  providers: [
    // TODO(pascal): use factory type annotations once supported in DI
    // issue: https://github.com/angular/angular/issues/3183
    {provide: Http, useFactory: httpFactory, deps: [XHRBackend, RequestOptions]},
    BrowserXhr,
    {provide: RequestOptions, useClass: BaseRequestOptions},
    {provide: ResponseOptions, useClass: BaseResponseOptions},
    XHRBackend,
    {provide: XSRFStrategy, useFactory: _createDefaultCookieXSRFStrategy},
  ],
})

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

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

Please login to continue.