EP 7.3 - Angular / Reactive Programming with RxJS / Observables & RxJS

Опубликовано: 17 Октябрь 2024
на канале: jawache
22,064
112

📚 Read the book 👉 https://go.asim.dev/angular-book
🔥 Level up your JavaScript 👉 https://go.asim.dev/advjs
🌿 If you find my videos useful please consider planting a tree for me 👉 https://go.asim.dev/trees
🎥 Watch the full playlist 👉 https://go.asim.dev/angular-playlist

The best place to view the code associated with this course is in the online book (https://go.asim.dev/angular-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.


Observables are a blueprint for creating streams and plumbing them together with operators to create observable chains.
RxJS is a library that lets us create and work with observables.

We can subscribe to an observable chain and get a callback every time something is pushed onto the last stream.
By default observables are cold and only become hot when they get their first subscriber.

Learning RxJS involves understanding all the operators that are available and how to use them together.
We use marble diagrams to help explain how an operator works.

In this lecture, we used RxJS in isolation, in the next lecture we will look at how to use RxJS in Angular.