JavaScript Edu Resources. Angular Courses. React Tutorials. Join us!

Angular 2 Using Http

  • 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.

Using Angular $Http and Angular 2 Http,%20so%20we%20need%20to%20use%20RxJS%20methods%20to%20operate%20on%20them.%22%20via%20@auth0%20

Comments are closed, but trackbacks and pingbacks are open.