parent
b88a6d983f
commit
a79fe057f9
|
@ -259,9 +259,9 @@ 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 'rxjs/operators/map';
|
||||
import 'rxjs/observable/interval'
|
||||
import {Observable} from 'rxjs/Observable';
|
||||
import 'rxjs/add/operators/map';
|
||||
import 'rxjs/add/observable/interval';
|
||||
|
||||
Observable.interval(1000).subscribe(...);
|
||||
|
||||
|
|
Loading…
Reference in New Issue