diff --git a/modules/angular2/src/http/backends/mock_backend.ts b/modules/angular2/src/http/backends/mock_backend.ts index 2c888ba1a6..c3b26bfe67 100644 --- a/modules/angular2/src/http/backends/mock_backend.ts +++ b/modules/angular2/src/http/backends/mock_backend.ts @@ -5,8 +5,7 @@ import {ReadyStates} from '../enums'; import {Connection, ConnectionBackend} from '../interfaces'; import {isPresent} from 'angular2/src/facade/lang'; import {BaseException, WrappedException} from 'angular2/src/facade/exceptions'; -var Rx = require('@reactivex/rxjs/dist/cjs/Rx'); -let {Subject, ReplaySubject} = Rx; +import {Subject, ReplaySubject} from '@reactivex/rxjs/dist/cjs/Rx'; /** * diff --git a/modules/angular2/test/http/http_spec.ts b/modules/angular2/test/http/http_spec.ts index a227b4cbe8..1c5fd71f57 100644 --- a/modules/angular2/test/http/http_spec.ts +++ b/modules/angular2/test/http/http_spec.ts @@ -29,9 +29,7 @@ import { Http, Jsonp } from 'angular2/http'; - -var Rx = require('@reactivex/rxjs/dist/cjs/Rx'); -let {Observable, Subject} = Rx; +import {Observable, Subject} from '@reactivex/rxjs/dist/cjs/Rx'; class SpyObserver extends SpyObject { onNext: Function;