EP 11.4 - Angular / HTTP / HTTP with Observables

Опубликовано: 26 Декабрь 2018
на канале: jawache
54k
147

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.


Смотрите видео EP 11.4 - Angular / HTTP / HTTP with Observables онлайн без регистрации, длительностью 24 минут 10 секунд в хорошем hd качестве. Это видео добавил пользователь jawache 26 Декабрь 2018, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 54 тысяч раз и оно понравилось 14 людям.