Files
angular/modules/@angular/http/src/backends/browser_xhr.ts
2016-05-01 20:51:00 -07:00

13 lines
295 B
TypeScript

import {Injectable} from '@angular/core';
/**
* A backend for http that uses the `XMLHttpRequest` browser API.
*
* Take care not to evaluate this in non-browser contexts.
*/
@Injectable()
export class BrowserXhr {
constructor() {}
build(): any { return <any>(new XMLHttpRequest()); }
}