I started using Angular2 Observable
, but I can\'t find something similar to .then
that I used with Promises
.
This is what I want
From Angular2 documentation
We are advise to add this in rxjs-extension.ts
```
// Observable class extensions
import 'rxjs/add/observable/of';
import 'rxjs/add/observable/throw';
// Observable operators
import 'rxjs/add/operator/catch';
import 'rxjs/add/operator/debounceTime';
import 'rxjs/add/operator/distinctUntilChanged';
import 'rxjs/add/operator/do';
import 'rxjs/add/operator/filter';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/switchMap';
```
And import it at app.module.ts
(Root Module)
import './rxjs-extensions';
This will help us to prevent further error.