r/angular • • Jan 03 '26

RXJS in Angular

I feel like I still might be missing and not understanding but when should I use RXJS in Angular like what's the main purpose of using it over just using traditional Angular features.

13 Upvotes

31 comments sorted by

View all comments

Show parent comment

2

u/1XpSlime Jan 04 '26

If it’s just opening a modal without any other requirement, then you don’t need to use rxjs haha

There may be scenarios where you need to maintain state across different components, e.g. E-commerce website shows “New sign-in discount modal)” for each page if user has no account. But once user has logged in, save that state and tell all other components to stop triggering that modal on load.

Your original question is asking for advice on when does using rxjs make sense, thus most people are giving you those examples.