- TL;DR: Making HTTP requests in Angular 2 apps looks somewhat different than what we’re used to from Angular 1.
- x, a key difference being that Angular 2’s Http returns observables.
- Angular 2’s Http implementation again provides a fairly straightforward way of handling requests, but there are some key differences.
- For example, we have the potential of tapping into useful RxJS operators like so that a failed HTTP request is automatically re-sent, which is useful for cases where users have poor or intermittent network communication.
- As was mentioned earlier, HTTP calls in Angular 2 return observables, so we need to use RxJS methods to operate on them.
Tweets by pkozlowski_os