rxjs operators

This is an app example to understand how rxjs operators work. You can start navigating types and operators to see some explanations and code snippets. For more information you can take a look at these links.

Types

Description

creation : These operators allow the creation of an observable from nearly anything. From generic to specific use-cases you are free, and encouraged, to turn everything into a stream.

Operators

operator: of
type: creation
description: emit variable amount of values in a sequence and then emits a single complete notification
data:
0: 1
1: 2
2: 3
3: 4
code:
            of() {
      this.data = [1, 2, 3, 4];
      const source = of(this.data);
      source.subscribe((data) => {
        this.result = data + 'text';
      });
  }
          
result:
(string): "1,2,3,4text"