Observers

Learn how to manipulate the data with pipes and operators.

We have an observable, but we’re not doing anything with it. Observables can emit values. If we want to listen for when a value is emitted, we need to create an observer.

Observers are the technical term for an object that listens to values delivered by the observable. We can create an observer using the subscribe() function. The observer’s job is to read the value or handle the error if one comes out.

Let’s look at how one is made.

Get hands-on with 1200+ tech skills courses.