parent
7f0925eb2b
commit
86c74cf3f3
|
@ -48,12 +48,12 @@ import * as core from 'angular2/core';
|
|||
|
||||
* Operators and Observables from RxJS (e.g. .map(), .toArray(), .toPromise(), etc ) now need to be explicitly imported (once per operator in your app)
|
||||
```
|
||||
import {Observable} from 'angular2/angular2/'
|
||||
import {Observable} from 'angular2/angular2'
|
||||
import 'rxjs/operators/map';
|
||||
import 'rxjs/observable/interval'
|
||||
|
||||
|
||||
Observable.interval(1000).subscribe(...);
|
||||
|
||||
|
||||
http.get('foos.json').map(res => res.json()).subscribe(...);
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue