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

Highlighting the use of RxJS in Angular

RxJS is practically a first-class citizen in Angular. It is part of the Angular ecosystem and is used in many features to handle asynchronous tasks. The following are some examples of these features:

  • The HttpClient module
  • The Router module
  • Reactive forms
  • The Event emitter

We will discuss each of the following concepts in the subsequent subsections.

Note

We recommend taking a quick look at https://angular.dev/overview, where you can find further details about the aforementioned features.

The HttpClient module

You might be familiar with the HttpClient API provided by Angular that is used to communicate with a server over the HTTP protocol. The HttpClient service is based on Observables that manage all transactions, which means that the result of calling API methods such as GET, PATCH, POST, and PUT will be an Observable.

In the following code snippet, we have an example of an Angular service that injects...

You have been reading a chapter from
Reactive Patterns with RxJS and Angular Signals - Second Edition
Published in: Jul 2024
Publisher: Packt
ISBN-13: 9781835087701
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 €18.99/month. Cancel anytime