RxJS in Angular - Things you must know
Things you must know.
Episode - 01
RxJS Operators and How to find right operator for your use case
Operators are functions. There are two kinds of operators: This video demonstrates both
Pipeable Operators are the kind that can be piped to Observables using the syntax observable instance.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
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.