Leverage the reactive paradigm with RxJS and signals in your Angular applications using common patterns and techniques designed for real-world use cases Key Features Discover practical reactive patterns to use in your Angular apps to improve the quality and performance of your code Explore the lat
Reactive Patterns with RxJS for Angular: A practical guide to managing your Angular applicationβs data reactively and efficiently using RxJS 7
β Scribed by L. Chebbi
- Year
- 2022
- Tongue
- English
- Leaves
- 224
- Category
- Library
No coin nor oath required. For personal study only.
β¦ Table of Contents
Title page
Copyright and Credits
Dedication
Contributors
Table of Contents
Preface
Part 1 β Introduction
Chapter 1: The Power of the Reactive Paradigm
Technical requirements
Exploring the pillars of reactive programming
Data streams
Observer patterns
Using RxJS in Angular and its advantages
The HTTP client module
The router module
Reactive forms
The event emitter
The async pipe
Learning about the marble diagram β our secret weapon
Summary
Chapter 2: RxJS 7 β The Major Features
Technical requirements
Exploring the bundle size improvements
Reviewing the TypeScript typing improvements
Understanding the toPromise() deprecation
The firstValueFrom() method
The lastValueFrom() method
Empty errors
Highlighting API consistency improvements
Summary
Chapter 3: A Walkthrough of the Application
Technical requirements
Our app's user stories
View one β the landing page
View two β the new recipe interface
View three β the My Recipes interface
View four β the My Favourites interface
View five β the modify recipe interface
View six β the recipe details interface
Our app's architecture
The components overview
Summary
Part 2 β A Trip into Reactive Patterns
Chapter 4: Fetching Data as Streams
Technical requirements
Defining the requirement
Exploring the classic pattern for fetching data
Defining the structure of your data
Creating an Angular service
Retrieving the data through a method
Injecting and subscribing to the service in your component
Displaying the data in the template
Managing unsubscriptions
Exploring the reactive pattern for fetching data
Retrieving data as streams
Defining the stream in your component
Using the async pipe in your template
Highlighting the advantages of the reactive pattern
Using the declarative approach
Using the change detection strategy of OnPush
Wrapping up
Summary
Chapter 5: Error Handling
Technical requirements
Understanding the anatomy of an Observable
Exploring error handling patterns and strategies
Handling error operators
The catchError operator
The delayWhen operator
Error handling in action
Summary
Chapter 6: Combining Streams
Technical requirements
Defining the requirement
Exploring the imperative pattern for filtering data
A look at the filter component
A look at the recipes list component
Exploring the declarative pattern for filtering data
The combineLatest operator
The declarative pattern pillars
Emitting a value when an action occurs
Summary
Chapter 7: Transforming Streams
Technical requirements
Defining the requirement
Exploring the imperative pattern for autosave
Exploring the reactive pattern for autosave
Higher-order observables
Higher-order mapping operators
The concatMap operator
Learning about other useful higher-order mapping operators
The mergeMap operator
The switchMap operator
The exhaustMap operator
Summary
Part 3 β Multicasting Takes You to New Places
Chapter 8: Multicasting Essentials
Technical requirements
Explaining Multicasting versus Unicasting
Producer
A cold observable
A hot observable
Exploring Subjects
A plain Subject
ReplaySubject
BehaviorSubject
Highlighting Multicasting operators
Summary
Chapter 9: Caching Streams
Technical requirements
Defining the requirement
Learning about using the reactive pattern to cache streams
Exploring the RxJS 7 recommended pattern to cache streams
Highlighting the use cases of caching streams
Summary
Chapter 10: Sharing Data between Components
Technical requirements
Defining the requirement
Exploring the reactive pattern to share data
Step one β creating a shared service
Step two β updating the last-selected recipe
Step three β consuming the last-selected recipe
Highlighting other ways for sharing data
Summary
Chapter 11: Bulk Operations
Technical requirements
Defining the requirement
Learning about the reactive pattern for bulk operations
The forkJoin operator
The pattern in action
Learning about the reactive pattern for tracking progress
Summary
Chapter 12: Processing Real-Time Updates
Technical requirements
Defining the requirement
Learning the reactive pattern for consuming real-time messages
The WebSocketSubject behavior
Connection management
Putting the pattern into action
Learning the reactive pattern for handling reconnection
Retrying the reconnection
Summary
Part 4 β Final Touch
Chapter 13: Testing RxJS Observables
Technical requirements
Learning about the subscribe and assert pattern
Learning about the marble testing pattern
Understanding the syntax
Implementing marble tests
Highlighting testing streams using HttpClientTestingModule
Summary
Index
About Packt
Other Books You May Enjoy
π SIMILAR VOLUMES
Leverage the reactive paradigm with RxJS and signals in your Angular applications using common patterns and techniques designed for real-world use cases Key Features Discover practical reactive patterns to use in your Angular apps to improve the quality and performance of your code Explore the lat
Leverage the reactive paradigm with RxJS and signals in your Angular applications using common patterns and techniques designed for real-world use cases Key Features - Discover practical reactive patterns to use in your Angular apps to improve the quality and performance of your code - Explore
<span> Learn how to build a Reactive Application with Ngrx and Angular </span><span><br><br> </span><span>Key Features</span><ul><li><span><span>Learn how to create your own minimalistic Redux implementation. </span></span></li><li><span><span> Get familiar with the working of NgRx Store. </span></s
<p><p>Manage your Angular development using Reactive programming. Growing in popularity and now an essential part of any professional web developer's toolkit, Reactive programming can enrich your development and make your code more efficient.</p><p>Featuring a core application to explore and build y
<p><b>Manage state in Angular to write high performing web apps by combining the power of Flux, RxJS, and NgRx</b><p><b>About This Book</b><p><li>Learn what makes an excellent Angular application architecture<li>Use Redux to write performant, consistent Angular applications<li>Incorporate Reactive P