Angular Signal vs BehaviorSubject

  Рет қаралды 13,632

Deborah Kurata

Deborah Kurata

Күн бұрын

Пікірлер: 52
@ianvink
@ianvink Жыл бұрын
Deborah, you are truly a treasure for the Angular community. You have the rare skills of being able to take complex tech and convert it to Human.
@deborah_kurata
@deborah_kurata Жыл бұрын
What a wonderful compliment! Thank you so much!
@rkrao8582
@rkrao8582 Жыл бұрын
This Signals series is amazing. Your teaching style is really good. If possible a future video on testing the Signals would be great addition to the series.
@deborah_kurata
@deborah_kurata Жыл бұрын
Thank you! 🙏 Last I heard from the Angular team, they haven't yet worked on the testing story. I'll add it to the list and put something together when there is something ready. Thanks again!
@daguttt
@daguttt Жыл бұрын
Yes dude. I totally agree
@souhaibkhadraoui9898
@souhaibkhadraoui9898 Жыл бұрын
I agree ! The teaching style is straight forward yet deep and it makes for great content
@scellilisa
@scellilisa Жыл бұрын
even better (for me ^^): testing signals with cypress :)
@zb2747
@zb2747 3 ай бұрын
Great video-straight to the point with clear explanations.
@deborah_kurata
@deborah_kurata 3 ай бұрын
Thank you! 😊
@respostasimples
@respostasimples Жыл бұрын
Good to hear from you again Deborah, thanks for the explanation!
@respostasimples
@respostasimples Жыл бұрын
can't wait for that video on signal-based inputs!
@deborah_kurata
@deborah_kurata Жыл бұрын
Me too! Waiting for those features to be implemented in a release candidate. Then we'll be covering it!
@cristobalcanas5189
@cristobalcanas5189 Жыл бұрын
I love your videos!! You are the best at teaching. Thanks for this!! From Chile
@deborah_kurata
@deborah_kurata 11 ай бұрын
Wow, thank you! 😊
@ShaharHar-Shuv
@ShaharHar-Shuv 4 ай бұрын
I did not watch the entire video but I did not find any section that explains in what scenario would you prefer BehaviorSubject? My thinking is that you will never prefer it over signals, and I'm actually considering writing a script that automatically converts all BehaviorSubjects to signals.
@tmegha4754
@tmegha4754 Жыл бұрын
Awesome, I am having a good understanding of signal, infact more signal series..Thank you
@deborah_kurata
@deborah_kurata Жыл бұрын
Thank you! 🙏 I'm looking forward to doing more videos in this series!
@muhamedkarajic
@muhamedkarajic Жыл бұрын
What I personally would like to see maybe is how you would do most common operators with Signals when you have e.g. switchmap, map, combineLatest. Would you still use RxJS and forward the stream to the signal?
@deborah_kurata
@deborah_kurata Жыл бұрын
Yes, you would still use RxJS for the pipeline. Then create a signal from the resulting Observable. I'll add to my list to do an example.
@anutaNYC
@anutaNYC 8 ай бұрын
​@@deborah_kuratayes I'm still not clear how to use signals and then when I usually subscribe to get some data from repo how to do that I'm still not clear
@celikart
@celikart Жыл бұрын
very good feature ın Angular, looking forward to hear more simplified
@deborah_kurata
@deborah_kurata Жыл бұрын
Agreed! Thanks!
@peymanebrahimi7756
@peymanebrahimi7756 Жыл бұрын
Excellent as always
@deborah_kurata
@deborah_kurata Жыл бұрын
Thank you! 🙏
@mitkogeorgiev3
@mitkogeorgiev3 Жыл бұрын
Thank you for this video Deborah. Can you include in your next videos this scenario: fetching data from API when we click on some button for example and managing this data in a service with signals ?
@deborah_kurata
@deborah_kurata Жыл бұрын
Thank you! And I'll add that to the list!
@kartheeknandini3767
@kartheeknandini3767 Жыл бұрын
Excellent video ❤ from India
@deborah_kurata
@deborah_kurata Жыл бұрын
Thank you! 🙏
@daguttt
@daguttt Жыл бұрын
Amazing video @deborah_kurata. Look forward to watch managing state with Signals 👀
@deborah_kurata
@deborah_kurata Жыл бұрын
Thank you! I'm thinking of doing that one next ... I'm just concerned that it will get a little long and I know most prefer shorter videos. So I'm thinking about how to maybe divide it up?
@radthenone
@radthenone 6 күн бұрын
I have this same question all times rxrj or signals i think signals angular 18 and up but angular 17 and less rxrj is better option
@deborah_kurata
@deborah_kurata 5 күн бұрын
Great way to look at it!
@carolruo
@carolruo Жыл бұрын
Excellent content
@deborah_kurata
@deborah_kurata Жыл бұрын
Thank you so much!
@andresmauriciofajardoolaya2721
@andresmauriciofajardoolaya2721 Жыл бұрын
Hi Deborah, always glad to see your videos. I would like to know if there's a way to handle isLoading state when a signal is getting information from Observables. Thanks for these short videos
@deborah_kurata
@deborah_kurata Жыл бұрын
Great to hear! I'll work up an example of isLoading. Thanks for the suggestion.
@masumulu
@masumulu Жыл бұрын
Hi Deb. Thanks for the video, it's really amazing! Also it could be the good adding source code link to the description! Waiting for next videos..
@deborah_kurata
@deborah_kurata Жыл бұрын
Hey! Thank you for the kind words about the video. And thank you for the reminder. I hadn't merged in my changes into my GitHub. It's done now and you can find it here: github.com/DeborahK/Angular-Signals/tree/main/swVehicles-with-vehicle-signals 😀
@masumulu
@masumulu Жыл бұрын
​@@deborah_kurata Thanks again! I already find the link form your youtube profile 😄 Maybe for next videos we hope the see on the description 🙏
@deborah_kurata
@deborah_kurata Жыл бұрын
Yes, it's in the description now. Thanks!
@alejandromenganaperez4065
@alejandromenganaperez4065 Жыл бұрын
Great videos, one question, if I start using signals with my app, should be safe to change all my components to OnPush right ?
@deborah_kurata
@deborah_kurata Жыл бұрын
Thank you! And yes! Any component that does all it's binding with signals (or signals and RxJS) can be changed to OnPush.
@muhamedkarajic
@muhamedkarajic Жыл бұрын
Hi Deborah, thank you for the video! I got the main reasons why to switch I think not needing 'subscribe' and async is really a good point. What I wonder is if there is hope they implement it so that we get those benefits of change detection when using RxJS as well?
@deborah_kurata
@deborah_kurata Жыл бұрын
Great to hear. Thank you! You can use OnPush change detection with RxJS *now* using the async pipe to get some of the benefits of improved change detection. I'm not certain what the plan for the async pipe will be in future versions (v17+). Whether they plan to include it in their new zoneless change detection or if they will phase it out. Is there a case when you'd really need an async pipe and can't create a signal from an Observable instead?
@samanthaadrichem9446
@samanthaadrichem9446 Жыл бұрын
What does this do to performance, calling the 'signal function' cartItem() over and over in your template vs reading a single fixed variable?
@deborah_kurata
@deborah_kurata Жыл бұрын
There should be no difference in performance between reading a variable and reading a signal. Longer term, Angular change detection will be modified to take advantage of signals, improving performance of binding to signals vs binding to variables. With normal variables, Angular doesn't track exactly what was changed, so runs change detection and regets all variable values to update the display. With signals, Angular will track the signals a template uses and will modify the display only for the changed signals. This could have a big impact on the performance of the UI.
@samanthaadrichem9446
@samanthaadrichem9446 Жыл бұрын
@@deborah_kurata Very interesting! What we tend to do is make a template and bind the variable in async only once, then re-use the let version, so that there are not multiple async subscriptions to the same variable in a single template. Can't wait to use it, though i'll have to wait at least 4 more months XD we're always 1 version behind on Angular to wait out the big bugs/issues.
@yuriinadilnyi3029
@yuriinadilnyi3029 Жыл бұрын
brilliant video)
@deborah_kurata
@deborah_kurata Жыл бұрын
Thanks!
@POLELENDWALI-x7f
@POLELENDWALI-x7f Жыл бұрын
❤❤
@zenande699
@zenande699 Жыл бұрын
Great tutorial, but who tf uses vscode with light theme 😂
@deborah_kurata
@deborah_kurata Жыл бұрын
Glad you liked the tutorial! I've thought that light theme was easier to see on a recording. 🤷‍♀️
Unlocking the Power of Angular Signals + RxJS: Practical Applications
16:24
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
What's new in Angular 17 @uxtrendz (2024)
15:24
UX Trendz
Рет қаралды 9 М.
How Angular Signals and RxJS Work Together
16:15
Deborah Kurata
Рет қаралды 32 М.
Here's what I've figured out about Angular signals
8:33
Joshua Morony
Рет қаралды 23 М.
Differences between Angular Rxjs Subject - BehaviorSubject - ReplaySubject
12:58
Code Shots With Profanis
Рет қаралды 12 М.
Use takeUntilDestroyed to Unsubscribe from Angular's Observables
10:36
Angular Signals: What? Why? and How?
27:08
Deborah Kurata
Рет қаралды 73 М.
Why didn't the Angular team just use RxJS instead of Signals?
8:15
Joshua Morony
Рет қаралды 108 М.
Build Generalized DRY Angular Code with Generics
14:44
Deborah Kurata
Рет қаралды 13 М.
Input Signals in Angular 17.1 - How To Use & Test
14:34
Decoded Frontend
Рет қаралды 33 М.