11 lines
249 B
TypeScript
11 lines
249 B
TypeScript
declare var window;
|
|
|
|
import {Injectable} from 'angular2/di';
|
|
|
|
// Make sure not to evaluate this in a non-browser environment!
|
|
@Injectable()
|
|
export class BrowserXHR {
|
|
constructor() {}
|
|
build(): any { return <any>(new window.XMLHttpRequest()); }
|
|
}
|