Creating Observables

Most of the time, when creating Observables, you won't use the create() method to do so. You will use other methods instead. Why is that? Well, an Observable instance usually originates from some asynchronous concept. In the context of using RxJS for creating Angular applications, an Observable instance will be created by doing one of the following things:

  • Creating or fetching data over HTTP with AJAX
  • Listening to input changes with reactive forms
  • Listening to routing changes
  • Listening to UI events
  • Wrapping an asynchronous concept

In RxJS, there are different creation operators that will help you solve these tasks, but the Angular framework might actually create Observables internally. Let's look at some creation operators ...

Get Architecting Angular Applications with Redux, RxJS, and NgRx now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.