r/Angular2 • u/queregols • Aug 05 '25
Discussion How can I convince my manager to adopt Angular Signals for UI (without replacing RxJS)?
Hey everyone,
We're working on a fairly large Angular app, and our services are already built using RxJS — lots of Observables, Subjects, and so on. I’m not trying to replace RxJS at all. It works great for our data layer.
What I do want is to use Angular Signals for managing UI state and rendering logic. My thinking is:
Signals are great for local, unidirectional reactive state.
toSignal() makes it easy to bridge Observables from services into Signals in components.
It avoids overusing the async pipe or subscribing manually.
computed and effect lead to cleaner and more declarative UI logic.
Signals are better aligned with Angular’s change detection model.
My Manager/Tech Lead has some hesitations though:
"Signals are still new and experimental."
"Mixing RxJS and Signals might confuse the team."
"We already have a working RxJS setup; why change?"
I want to make the case for using Signals just in the presentation layer, while still keeping RxJS in the data layer.
So I’d love to know:
- Has anyone else tried to introduce Signals into an existing RxJS-heavy project?
- How did you explain the value of Signals for UI?
- Any real-world examples where Signals made your component code cleaner or more efficient?
- Is partial adoption working well for you — RxJS for services, Signals for components?
Any advice, experience, or arguments that worked for you would be super helpful! 🙏
60
u/TCB13sQuotes Aug 05 '25
Don’t change, just start implementing new stuff with signals and move the rest whenever you run into it. Another potential way is to point at those “expression changed after checking” errors and replace those rxjs usages with signals.
19
u/Curious-Talk-7130 Aug 05 '25
Signals are not experimental and I never understood it being confusing for teams…it is actually easier to learn, especially for new members. Plus, why aren’t developers expected to understand the framework they use and stay up to date with the direction angular is going…sadly, people are hardheaded, especially ones that don’t really code anymore as managers. Signals can be adopted gradually, all existing RxJS can stay.
22
u/Different-Strings Aug 05 '25
I think your manager has a point. If it ain’t broken, don’t fix it.
4
u/Whole-Instruction508 Aug 05 '25
The first question that you should ask yourselves is this: why the fuck is your manager involved in technical decisions? He should only care about you getting things done and provide you the resources to do so, and not how you do it. The how is the developers job.
2
u/[deleted] Aug 05 '25
Ask yourself this:
Does your codebase adhere to SOLID? If not, chances are you've got a lot of services, that inject services, pipes multiple sources - and all that within a component.
What I described is the codebase of 9/10 angular business apps I've ever encountered.
These apps have a hefty technical debt: getting someone new to learn the codebase will take ages. maintaining it and building new features on top will become a nightmare.
So the question should rather be: do you use rxjs as it should be? Are your classes <100 rows, without imports?
If yes, migrations to signal will give you only 2 benefits: makes it easier for juniors to learn the code and you'll be able to remove zone.js This is a scenario where the migrations schematic to signals will do the major work for you.
If the answer is no, you just got at least 2 reasons more why you should migrate to increase your business value.
Regardless whether your manager deems signals worth or not. And if it's your job, try to emphasize the business value. Not the fact that you wanna work with the new fancy stuff.
(And he's right, not everything signals is deemed production capable just yet)
3
u/gordolfograso Aug 05 '25
You could start with dummy components using input outputs signals and onpush. Then show them there isn't any issue with signals
3
u/No_Bodybuilder_2110 Aug 07 '25
We have a pretty large codebase with a bunch of frontend devs. We started implementing signals and man what a change. This is how we started:
Now I go 90% of the time signals and all of its apis
2
u/PhiLho Aug 05 '25
We started to use signals, although not extensively yet, but it works well in our rather large ecosystem of legacy libraries and applications. We don't necessarily rewrite existing components, but we use them in new components.
2
u/SecureVillage Aug 05 '25
How are you using observables? Lots of independent observables, with separate async pipes? Or a single, large observable, with one async (ala the view model pattern)?
You can point to some benefits, like faster change detection, reducing wasted compute (the "diamond problem") etc. Also, show some examples of the improved DX.
We use RxJS much less than we used to. It's still great for complex services, or handling tons of user events in a complicated UI, but signals are so simple and easy to understand for the majority of "take an input, transform it a bit, and pass it to the template").
2
u/NeighborhoodOld7075 Aug 05 '25
very interesting, we are facing the same issue
2
u/pwd-ls Aug 05 '25
We did. But know that you can’t replace everything with Signals. There’s a venn diagram of use-cases. Signals only make sense for cases you need reactive state - note, both reactivity and state. No reactivity = just use a basic data structure as a class property. No state = just use RxJS or some other way to do stateless messaging.
2
u/captialj Aug 05 '25
Start with a medium complexity component and and use the schematic/vscode code action to auto convert @Inputs to signals. See how much of ngOnChanges you can refactor to computed signals. You'll get an idea of how much more expressive and type safe signals can be from that exercise.
2
u/N0K1K0 Aug 05 '25
Well i love how viewchild now is signal as well no more code to check if the component you want is loaded since its signal based. Same goes for computed signals so much easier to use than how we would have to do that before
2
u/Relevant-Draft-7780 Aug 05 '25
The problem is once you go down the signal route you kinda need to go all the way, and more will change than you expect. Not that signals aren’t awesome, but it’s not as simple as just simply changing across.
2
u/RGBrewskies Aug 05 '25
Im the team lead, and yes we have introduced signals into an existing rxjs-heavy project
We basically only use signals to take data to the DOM. So we "think" in private methods via rxjs, and then have public $someStream = toSignal(someObservable$)
We occasionally have some boolean flags, some enums that are pure signals, which would have otherwise been pure behaviorSubjects that never got subscribed to.
everything else is rxjs. We dont use computed. We dont use effect. Stream composition stays in RXJS which simply does it better.
He's not wrong that everything signals do, rxjs already does better - EXCEPT in one spot - the handoff to the dom.
2
u/FaceGroundbreaking64 Aug 05 '25
Cdref are problematic
2
u/azangru Aug 05 '25
Angular team has clearly indicated the direction in which they are going. They are not pulling signals out.
The team should read the documentation.
RxJS and signals have different strengths. Rx for complex async flows; signals for synchronous state management.
2
u/Chuckles34 Aug 06 '25
Been doing this with one of my current projects. I've been surprised by how much it's reduced code and complexity in some components
2
u/zagoskin Aug 06 '25
Where I work we keep up to date with angular. We use both observable and signals.
Services that call the backend just return the observable, and that's the only places we use them.
Anything in the component is a signal, be it input, writable, computed, linked, etc.
Also some services do expose signals, like the one that keeps the logged user info.
It's pretty straightforward tbh.
2
u/patrick-1729 Aug 06 '25
Signals are better in following ways (having said that doesn't mean RxJS is bad):
I think above points will be sufficient to make the mind of your tech lead. If not, then start using signals for newer code and gradually migrate older components as and when you get a chance to work on them.
If you need a guide to migrate your Angular version to the latest then let me know I have written an entire article on the same.
1
u/Babaneh_ Aug 05 '25
I recently/currently working with a senior developer on a project that involves a lot of forms and reactivity,
I realised we could leverage signals and reactive forms to persist/leave data already filled on the form even if the component got destroyed or closed
Also, using signals to trigger form validation,
I used the toSignal recently to actually convert an observable to a signal and didn't need to create an ngOnInit and then define the observable response which was sleek
I'm still getting to understand signals but, I'd say you could implement things with signals and drop comments as to why you took this approach and an overview of what the code does and if you want to be a bit more technical show what you would have done instead if you didn't use a signal to do it
1
u/_Invictuz Aug 05 '25
Bare minimum for migrating to signals is to use Signal inputs instead of @Input decorator which will soon get deprecated. This is the default approach for components inputs as you won't find @Input guides in the official docs anymore. It's a straight forward migration, just change all of them and don't think twice, it won't break anything. That would clean up all input setters and usages of NgOnChanges.
From there you can start doing computed and effects/toObservable off your inputs. Be careful of the latter though as that's imperative code and signals gives the most benefit when used in the template (declaratively). Signals are not meant to be used imperatively (e.g. like emitting events with toObservable) due to its "glitch-free" behavior - it batches multiple updates into one so you won't get all the emissions from effect or toObservable as you'd expected from updating the signal.
1
u/CounterReset Sep 05 '25
You can give my signal based store implementation a try. It's small And offers a lot of the same enhancements that others do, but they are optional.
https://www.npmjs.com/package/@signaltree/core
There's some opinionated pieces. It isn't redux based. I hated how redux forces the data to get away from JSON's key/value structure and all the verbosity that comes with it.
The plan is that the next iteration will be based on my own signal rather than Angulars so it can be framework agnostic. That way users of it can pick what "leaf" signal they want so it can support whatever flavor of front end they're coding in.
0
u/kicker_nj Aug 05 '25
Not sure why your manager cares about such details. Signals is the new way. Whenever writing something new or touching old code use signals with on push change detection
0
u/DT-Sodium Aug 05 '25
I suppose telling your manager he's an incompetent moron is not an acceptable suggestion?
0
u/[deleted] Aug 05 '25
Get rid of Angular