X Tutup
Skip to content

Commit ad48169

Browse files
robwormaldjelbourn
authored andcommitted
fix(changelog): add RxJS imports breaking change
Closes #5678
1 parent 2d313c4 commit ad48169

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

CHANGELOG.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,17 @@ import * as core from 'angular2/core';
4646

4747
* Http's MockBackend is no longer exported from the `angular2/http` module. It's now available at `angular2/http/testing`
4848

49-
50-
49+
* Operators and Observables from RxJS (e.g. .map(), .toArray(), .toPromise(), etc ) now need to be explicitly imported (once per operator in your app)
50+
```
51+
import {Observable} from 'angular2/angular2/'
52+
import 'rxjs/operators/map';
53+
import 'rxjs/observable/interval'
54+
55+
Observable.interval(1000).subscribe(...);
56+
57+
http.get('foos.json').map(res => res.json()).subscribe(...);
58+
```
59+
5160
<a name="2.0.0-alpha.47"></a>
5261
# 2.0.0-alpha.47 (2015-12-01)
5362

0 commit comments

Comments
 (0)
X Tutup