Little about Myself
Front End Dev Blogger Author
• A new asynchronous programming concept: the stream
• A new primitive type: Observables
• Intro to RxJs in Angular
• Commonly used operators: map, ﬁlter, reduce, scan
• Common uses of RxJs in Angular: Forms and Http
Stream is simply - sequence of events over a given time.
Streams can be used to process any of type of event such as
• mouse clicks,
• key presses,
• bits of network data, etc.
You can think of streams as variables that with the ability to
react to changes emitted from the data they point to.
New Primitive Type - Observables
An observer subscribes to an Observable. An Observable
emits items or sends notiﬁcations to its observers by calling
the observers’ methods.
In other documents and other contexts, what we are
calling an “observer” is sometimes called a
“subscriber,” “watcher,” or “reactor.” This model in
general is often referred to as the “reactor pattern”.
Intro to RxJS
RxJS is a library that allows us to easily create and
manipulate streams of events and data. This makes
developing complex but readable asynchronous code
RxJS in Angular
To get started with RxJS in Angular, all we need to do is
import the operators we want to use. TRxJS is itself an
Angular dependency so it's ready to use out of the box.
Creating Observable in Angular
Using in http Service in Angular