Angular Signals or RxJS - They are not a replacement

preview_player
Показать описание
Here we compare Angular Signals vs RxJS to show that you can't replace RxJS with Signals. This is not possible. Learn how to combine Angular Signals with RxJS to get the best results.

MOST POPULAR COURSES

FOLLOW ME

REFERENCES
Рекомендации по теме
Комментарии
Автор

really nice video. a real world problem. different from that tutorials where you get lost thinking where you could use what you are learning and forget about everything because you can't relate. thanks!

cloudsss
Автор

What is it like to be soooo good at Angular? It must be wonderful.

LukeAvedon
Автор

Love this thanks for the great content, as always!

dinysanchez
Автор

Hi Thank you very much, what about when we need to convere observables to signals and it is a form.valuechanges or a parent form.valueschanges knowing that we cannot use toSignal outside of a constructor and inside the constructor the form may not be initialized yet .

dcmvpos
Автор

Also I find that signals have totally different (more limited) use cases. Signal is essentially a value that incorporates change propagation, and as such it feels quite contrived to use them for streaming. You can use an effect() to implement reactive logic that executes for each new value, but that definitely doesn't seem semantic, plus you're forced to provide a starting value, and if that is null or undefined, then you end up having to declare the type as a union with null or undefined, which is again totally not what you'd want for a regular Subject fashion streaming.

leakyabstraction
Автор

Great video, as always! 💪

I just have one Q: There's no need to manually unsubscribe?

ferlezcano
Автор

what do you mean with digest cycle? From my understanding, signals prevent change detection across the whole app, instead it's more granular. Is this what you are referring to?

Also I bought your course on ngrx and angular and it is great!

juanpabloguerra
Автор

If I have a list of articles (or todos) and I delete one of them (with http delete). How can I trigger an new fetch of the list of articles?
I still struggle with designing code with http calls and signals :(

hamza
Автор

Async state with rxjs.
Sync state with signal.
I do not know what the advantage for convert this observable to signal from my side i think it is unnecessery to do that but could you explain the reason.

And you show very small example i want to ask how it would be if you want not just that but handle api failing to response with signal it will be a hell and that is why devs love angular and like this things just recently fixed with react-query.

tbigqhb
Автор

impressive and real use case explained well

pragadeesh
Автор

This is a good example of how mixing signals and RxJS can work out. However, with an additional signal for the articles that is updated inside an async effect based on the search value you can achieve the same goal with just the signals API.

evokr
Автор

Omg what theme is that?looks beautiful

harvey_
Автор

One of the best content for angular developers🤜🤛

tranedev
Автор

so why use here signals? we can use behaviour subject for same thing

pxbrlwk
Автор

Possible dumb question: why not just use rxjs in this case rather than converting between signals and rxjs obersvabless? Would it not be better to use subject?

MrEvilyogurt
Автор

Personally there is no "OR" i use both =D

MhmmDonuts
Автор

Alex, RXJS it's to big to be used just for http requests, Angular must use some native API from JS. RxJS will disappear!

valikonen
Автор

Debounce time, distinct until changed and switch map are the reasons rxjs sold so well. For all the rest rxjs is inferior to other options IMO, infact most people do lastValueFrom on http requests, this is a clear demonstration that async/await wins when it comes to http request handling. The command/query paradigm sucks, imperative is much better than declarative, because everybody understands the former, the only thing which goes well with declarative programming is UI (template stuff ngIfs etc).

FredoCorleone