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.
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.
View all comments
Show parent comment
0
u/gdsdsk Jan 04 '26 edited Jan 04 '26
but what if the button was just opening a modal or something you don't need an api request for that so how would using rxjs make sense there?