...

/

How Angular Uses RxJS

How Angular Uses RxJS

Let's explore how Observables, Operators, Subjects, and RxJs are used in our Angular applications.

So, how does RxJs relate to Angular? Well, the Angular team has made RxJs a core part of the framework. We haven’t had to install RxJs separately as a dependency in our projects. Having RxJs as part of Angular means that we can use Observables, Observers, and Operators throughout our applications, wherever we choose to use them.

Where to consider using RxJs

When writing our Angular applications, there are certain times when an RxJs-based approach may be a better solution than a non-RxJs-based approach.

Services

In regards to Services and HTTP requests, as we saw in the Dependency Injection, Services, and HttpClient chapter, RxJs is used for managing them. All the REST ...