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

BrowserXhr

npm Package @angular/http
Module import { BrowserXhr } from '@angular/http';
Source http/src/backends/browser_xhr.ts

Deprecation Notes

use @angular/common/http instead

Overview

      
      class BrowserXhr {
  constructor()
  build(): any
}
    

Description

A backend for http that uses the XMLHttpRequest browser API.

Take care not to evaluate this in non-browser contexts.

Constructor

      
      constructor()
    

Members

      
      build(): any
    

Annotations

      
      @Injectable()