BREAKING CHANGE Before import * as p from 'angular2/profile'; import * as t from 'angular2/tools'; After import * as p from 'angular2/instrumentation'; import * as t from 'angular2/platform/browser';
9 lines
223 B
TypeScript
9 lines
223 B
TypeScript
import {Injectable} from 'angular2/core';
|
|
|
|
// Make sure not to evaluate this in a non-browser environment!
|
|
@Injectable()
|
|
export class BrowserXhr {
|
|
constructor() {}
|
|
build(): any { return <any>(new XMLHttpRequest()); }
|
|
}
|