RxJS Basics in Examples

Artem Diashkin
LITSLINK
Published in
8 min readAug 27, 2020

--

Let's take a look at simple examples of using RxJS, and after that, I hope, you will get the basic idea behind it.

What will be covered in this article:

  • 1. Simplest example
  • 2. Observer
  • 3. Observable
  • 4. Subscription
  • 5. RxJS API List: “index” functions:
  • 5.1 pipe
  • 5.2 concat
  • 5.3 merge
  • 5.4 forkJoin
  • 5.5 fromEvent
  • 5.6 iif
  • 5.7 defer
  • 5.8 partition
  • 5.9 range
  • 5.10 interval
  • 5.11 timer
  • 5.12 bindCallback
  • 5.13 bindNodeCallback
  • 5.14 generate
  • 5.15 onErrorResumeNext
  • 5.16 combineLatest
  • 5.17 isObservable
  • 5.18 pairs
  • 5.19 race
  • 5.20 zip
  • 6. HTTP requests using “ajax”

1. Simplest example

--

--