AsyncPipe, Signals interop, testing and choosing operators
Learn AsyncPipe, Signals interop, testing and choosing operators (Module 12 · RxJS, Angular) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
AsyncPipe: subscribe from the template • AsyncPipe ( | async ) subscribes to an Observable (or Promise) in the template, shows the latest value and unsubscribes automatically when the component dies. It also triggers change detection for OnPush components. • Use @if (data$ | async; as data) to subscribe once and get a local variable.
More lessons in Module 12 · RxJS
- Module 12 overview and checklist
- Reactive programming, Observables and Observers
- Subjects: Subject, BehaviorSubject, ReplaySubject, AsyncSubject
- Operators: categories and everyday operators
- Higher-order observables: switchMap, mergeMap, concatMap, exhaustMap
- Combining streams and sharing results
- Error handling, completion and subscription management