Read the book
Level up your JavaScript
If you find my videos useful please consider planting a tree for me
Watch the full playlist
The best place to view the code associated with this course is in the online book ( via the book if a lecture has code associated with it, it then also has a link to a stackblitz instance so you can run and edit the code sample online.
In this lecture, we’ve covered, in depth, how to use observables when making HTTP requests.
The goal of this lecture was to show you how you can evolve your application from one that uses just a little bit of observables to one that uses a lot more.
Hopefully, you now have a much better idea of how to architect your application using observables.
We could go even further, for instance, the loading property could be it’s own observable, how far and how deep to go is up to you. Depending on how comfortable you feel with Observables and how well they match to your use case.
They can be really powerful but at other times they can be a big hindrance with little benefit. In Angular you can use as much or as little reactive programming as you want, it doesn’t prescribe one way or the other.
So far we’ve not dealt with the issue of CORS and we cheated in creating these apps by installing a plugin to chrome which circumnavigates CORS security issues.
In the next lecture, we’ll cover how to use JSONP to solve CORS issues, if the API supports JSONP, and how to implement JSONP requests in Angular.
Watch video EP 11.4 - Angular / HTTP / HTTP with Observables online without registration, duration 24 minute 10 second in high hd quality. This video was added by user jawache 26 December 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 54 thousand once and liked it 14 people.