| Start |
|---|
| Wait for multiple requests One common scenario is to wait for a number of requests to finish before continuing. This can be accomplished using the In the following example, |
| Basic request The following example demonstrates a simple HTTP GET request. |
| Encapsulating API requests It may be a good idea to encapsulate the HTTP handling logic in its own class. The following class exposes a method for getting Posts. It calls the The previous example uses a A component now can use the RemarksMaking API requests with Angular 2 Http service and RxJS is very similar to working with promises in Angular 1.x. Use the Http (opens new window) class to make requests. The Http class exposes the methods for issuing HTTP requests All methods of the The Observable stream for a request contains only one value - the Note, the observables returned by the |
Read Article
https://develop.horje.com/learn/1434/reference