docs-RxJs for Angular Developers: Using HttpModule
Many angular developers convert observer returned for HTTP request to promise before using them. This guidance will introduce to the developer how to declaratively use the returned observers instead of transforming it to promote.
The Angular Docs have a great example of this... https://angular.io/guide/http#making-a-request-for-json-data
this.http.get('/api/items').subscribe(data => {
// Read the result field from the JSON response.
this.results = data['results'];
});
Yes, this one way of doing that. The other way is returning the observer to the template instead of the results coming from the subscription.
The other way, is as follow:
this.results = this.http.get('/api/items').map(data => data['results']);
@Only1MrAnderson If you are going to work on that, please use both patterns in your documentation.