BREAKING CHANGE:
This change moves the http module into angular2/, so its import
path is now angular2/http instead of http/http.
Many other modules have also been moved around inside of angular2,
but the public API paths have not changed as of this commit.
9 lines
221 B
TypeScript
9 lines
221 B
TypeScript
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 XMLHttpRequest()); }
|
|
}
|