Using Angular Computed Signals for Cart Totals

  Рет қаралды 7,223

Deborah Kurata

Deborah Kurata

Күн бұрын

Пікірлер: 38
@maratmig
@maratmig Ай бұрын
Thank you, Deborah, you are absolutely perfect.
@deborah_kurata
@deborah_kurata Ай бұрын
That is so kind of you to say! 😊 Thank you!
@zshn
@zshn Жыл бұрын
This is the best example I've seen so far regarding signals.
@deborah_kurata
@deborah_kurata Жыл бұрын
Excellent! Thanks!
@deepakkumarmohapatra4760
@deepakkumarmohapatra4760 6 ай бұрын
Crystal clear example I have ever gone through on signals, Thanks Deborah for such nice explanation.😘
@deborah_kurata
@deborah_kurata 6 ай бұрын
Excellent! Thank you so much for the kind words!
@d13g0m0r3n0
@d13g0m0r3n0 Жыл бұрын
Good to see more feature and scenarios with signal and continue using same app as previous examples
@ali-13392
@ali-13392 Жыл бұрын
Awesome video, thanks Deborah!
@deborah_kurata
@deborah_kurata Жыл бұрын
Thanks!
@metric152
@metric152 Жыл бұрын
Life without zones is looking good. Thanks again for another straight forward tutorial
@deborah_kurata
@deborah_kurata Жыл бұрын
Yes! And thank you!
@rn.cslive
@rn.cslive 10 ай бұрын
Much time I working with angular in commercial application, booking online.., at the end, we have a better approaching to resolve the complexity when calculating the bill :)), thank angular signal, thank teacher.
@deborah_kurata
@deborah_kurata 10 ай бұрын
Excellent! Glad it has been useful!
@dreamvallyhasan4807
@dreamvallyhasan4807 10 ай бұрын
Best Angular tutorial ever ..mis we want a large projects using .net core api, angular 17 + RDLC with you ..thanks from the bottom of my heart
@deborah_kurata
@deborah_kurata 10 ай бұрын
Thank you! All the best on your new project!
@MrGilband
@MrGilband 26 күн бұрын
simple clear and even fun
@deborah_kurata
@deborah_kurata 25 күн бұрын
Yep! Signals are fun! Thanks
@paulecampbell
@paulecampbell Жыл бұрын
I love your videos, yay!
@deborah_kurata
@deborah_kurata Жыл бұрын
Your comment made me smile. Thank you for brightening my day!
@paulecampbell
@paulecampbell Жыл бұрын
@@deborah_kurata so happy I could do that🙂
@behzadkhosravanimajd
@behzadkhosravanimajd Жыл бұрын
Thank you so much, it is such a great tutorial. 🤗
@deborah_kurata
@deborah_kurata Жыл бұрын
You’re welcome 😊 Thanks for watching!
@wesley_931
@wesley_931 Жыл бұрын
Thanks again for the great explaination. I saw you inject the service. Why should I use this instead of constructor. Does it bring any benefits and when should I use the constructor? Thank you in advance
@deborah_kurata
@deborah_kurata Жыл бұрын
Thank you for watching. One of the key benefits of the inject() vs the constructor parameter is that it is more clear and readable. We know from learning that adding a parameter to a constructor (but only if it has an accessibility prefix) sets up dependency injection. The inject keyword is clearly stating it's purpose: to inject a service. So as part of Angular's efforts to become more explicit and clear, it makes sense to use the inject() instead.
@wesley_931
@wesley_931 Жыл бұрын
@@deborah_kurata Aah allright, thanks for the explaination😁
@MouadhAKROUT
@MouadhAKROUT 9 ай бұрын
thank you for the video 🙂
@deborah_kurata
@deborah_kurata 9 ай бұрын
Thank you for watching!
@CuentaPremiun-h5t
@CuentaPremiun-h5t 2 ай бұрын
But if I reload the browser, the data is lost, how can I mitigate this?
@deborah_kurata
@deborah_kurata 2 ай бұрын
Everything on the web is transient. If you want to retain data you have to store it somewhere, such as on the user's system (writing to LocalStorage for example) or to a database on a backend server somewhere. For a real shopping cart application, you'd need a backend server with a database to store and process the orders. Is that what you were asking?
@haroldpepete
@haroldpepete Жыл бұрын
great explantation, i have a simple question, are there any limit in the amount of computed signal in a component or whole application? so many computed signal could affect the performance! of the application?
@deborah_kurata
@deborah_kurata Жыл бұрын
Thanks. There is no limit that I'm aware of. In terms of performance, computed signals are both lazy and memoized. They are lazy in that they don't calculate until they are read. So if you have a computed signal that is never used anywhere, it won't calculate/recalculate. Memoized means that once a computed signal is calculated, it caches the calculation and does not recalculate unless one of the dependent signals change. So if you use one computed signal 3 times in your template, it will calculate one time and reuse the cached value the other two times its used.
@triloksingh8596
@triloksingh8596 5 ай бұрын
God bless. Well explain
@deborah_kurata
@deborah_kurata 5 ай бұрын
Thank you!
@Stepanmc
@Stepanmc 8 ай бұрын
good explanation. The only thing - repetitive intonation accents(cadence) are annoying.
@deborah_kurata
@deborah_kurata 8 ай бұрын
Glad you liked the explanation. Yeah, I'm from Wisconsin and have that mid-Western drone-y tone. I wish I came from New Zealand or even Tennessee and had a more fun intonation/cadence. I keep thinking to myself ... if everyone hates my "real" intonation, maybe I should just go with AI audio? It would most certainly be faster.
@deborah_kurata
@deborah_kurata 8 ай бұрын
Just out of curiosity ... do you hear the same issue in this video: kzbin.info/www/bejne/m5m3epuHpc9sr9U
Angular Signals: Where Do they Go?
1:39
Deborah Kurata
Рет қаралды 6 М.
Angular Signals: What? Why? and How?
27:08
Deborah Kurata
Рет қаралды 72 М.
Angular's effect(): Use Cases & Enforced Asynchrony
33:54
Rainer Hahnekamp
Рет қаралды 6 М.
Here's what I've figured out about Angular signals
8:33
Joshua Morony
Рет қаралды 23 М.
Are you using Angular Signal Effects in the RIGHT way?
11:13
Zoaib Khan
Рет қаралды 4 М.
You might not need useEffect() ...
21:45
Academind
Рет қаралды 178 М.
First Look at Angular's new resource() and rxResource()
11:38
Deborah Kurata
Рет қаралды 9 М.
When Should We (NOT) Use a Signal effect()?
9:33
Deborah Kurata
Рет қаралды 4,7 М.
RxJS in Angular: Terms, Tips, and Patterns
43:01
Deborah Kurata
Рет қаралды 35 М.
Angular Just Got Way Better
4:10
Awesome
Рет қаралды 13 М.
Angular Signal Input: Ultimate Guide for Developers
6:52
Monsterlessons Academy
Рет қаралды 6 М.