Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Reactive Patterns with RxJS and Angular Signals

You're reading from   Reactive Patterns with RxJS and Angular Signals Elevate your Angular 18 applications with RxJS Observables, subjects, operators, and Angular Signals

Arrow left icon
Product type Paperback
Published in Jul 2024
Publisher Packt
ISBN-13 9781835087701
Length 254 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Lamis Chebbi Lamis Chebbi
Author Profile Icon Lamis Chebbi
Lamis Chebbi
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Preface 1. Part 1:An Introduction to the Reactive World
2. Chapter 1: Diving into the Reactive Paradigm FREE CHAPTER 3. Chapter 2: Walking through Our Application 4. Part 2: A Trip into Reactive Patterns
5. Chapter 3: Fetching Data as Streams 6. Chapter 4: Handling Errors Reactively 7. Chapter 5: Combining Streams 8. Chapter 6: Transforming Streams 9. Chapter 7: Sharing Data between Angular Components 10. Part 3: The Power of Angular Signals
11. Chapter 8: Mastering Reactivity with Angular Signals 12. Part 4: Multicasting Adventures
13. Chapter 9: Demystifying Multicasting 14. Chapter 10: Boosting Performance with Reactive Caching 15. Chapter 11: Performing Bulk Operations 16. Chapter 12: Processing Real-Time Updates 17. Part 5: Final Touches
18. Chapter 13: Testing RxJS Observables 19. Index 20. Other Books You May Enjoy

Learning the reactive pattern for tracking the bulk operation’s progress

Tracking the progress of bulk operations is very important, as it provides feedback to the user and can identify potential issues. When it comes to approaches for tracking progress, there are different strategies and techniques depending on the nature of the bulk operation and the technology stack you’re using. For example, you can use an increment counter to show when each operation is processed, use a percentage to track the progress of the operations, or even log the progress to a file or database.

In the case of our recipe app, in order to track the progress of the bulk upload, we will use the percentage of completion strategy. To implement this strategy, we will use a very useful operator called finalize.

The finalize operator allows you to call a function when the Observable completes or errors out. The idea is to call this operator and execute a function that will calculate the progress...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime