RxJS in Angular - Things you must know
Things you must know.
Most developers today use RxJS in Angular. some of them may not know the underlying concepts and how those coupled together. this video is to clear out some of the confusion. Reactive programming is an asynchronous programming paradigm concerned with data streams and the propagation of change (Wikipedia). RxJS (Reactive Extensions for JavaScript) is a library for reactive programming using observables that makes it easier to compose asynchronous or callback-based code. See (RxJS Docs).
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.