Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Rxjs Transformation Operators
Rating: 3.7 out of 5(4 ratings)
1,493 students

Rxjs Transformation Operators

Transformation Operators
Last updated 10/2022
English

What you'll learn

  • Rxjs Transformation Operators
  • Rxjs Operators
  • rxjs
  • Rxjs

Course content

1 section28 lectures1h 28m total length
  • Introduction1:18
  • Buffer operator10:17
  • Buffer Count5:02
  • BufferTime1:39
  • BufferToggle3:13
  • BufferWhen2:49
  • ConcatMap5:08
  • ConcatMapTo3:23
  • exhaust and exhaustMap3:18
  • Expand2:57
  • GroupBy4:57
  • Map1:58
  • MapTo1:01
  • mergeMap3:32
  • mergeMapTo0:55
  • mergeScan1:47
  • Pairwise3:04
  • Partition1:08
  • Pluck1:41
  • Scan4:49
  • switchScan2:11
  • switchMap2:46
  • switchMapTo2:33
  • Window2:53
  • WindowCount3:53
  • WindowTime3:19
  • WindowToggle2:51
  • WindowWhen3:45

Requirements

  • No programming experience needed. You will learn everything you need to know

Description

RxJS is a library for composing asynchronous and event-based programs by using observable sequences. It provides one core type, the Observable, satellite types (Observer, Schedulers, Subjects) and operators inspired by Array methods (map, filter, reduce, every, etc) to allow handling asynchronous events as collections.

ReactiveX combines the Observer pattern with the Iterator pattern and functional programming with collections to fill the need for an ideal way of managing sequences of events.

The essential concepts in RxJS which solve async event management are:

  • Observable: represents the idea of an invokable collection of future values or events.

  • Observer: is a collection of callbacks that knows how to listen to values delivered by the Observable.

  • Subscription: represents the execution of an Observable, is primarily useful for cancelling the execution.

  • Operators: are pure functions that enable a functional programming style of dealing with collections with operations like map, filter, concat, reduce, etc.

  • Subject: is equivalent to an EventEmitter, and the only way of multicasting a value or event to multiple Observers.

  • Schedulers: are centralized dispatchers to control concurrency, allowing us to coordinate when computation happens on e.g. setTimeout or requestAnimationFrame or others.

Operators are functions. There are two kinds of operators:

Pipeable Operators are the kind that can be piped to Observables using the syntax observableInstance.pipe(operator()). These include, filter(...), and mergeMap(...). When called, they do not change the existing Observable instance. Instead, they return a new Observable, whose subscription logic is based on the first Observable.

A Pipeable Operator is a function that takes an Observable as its input and returns another Observable. It is a pure operation: the previous Observable stays unmodified.

A Pipeable Operator is essentially a pure function which takes one Observable as input and generates another Observable as output. Subscribing to the output Observable will also subscribe to the input Observable.

Creation Operators are the other kind of operator, which can be called as standalone functions to create a new Observable. For example: of(1, 2, 3) creates an observable that will emit 1, 2, and 3, one right after another. Creation operators will be discussed in more detail in a later section.

Who this course is for:

  • for developers