💥 Angular Signals Pattern: Signal-based Data Services #angular

preview_player
Показать описание


Free content at the Angular University:

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

I really like your videos, but please use Dark Mode 😅

theprantadutta
Автор

You were the first on YouTube to explain this new feature 🎉, thank you!

Played around with signals for a bit, there are 2 issues with them:
1. Storing a signal in a variable and then accessing it in the template will cause a signal to lose its reactivity. In my case I used a signal from one service in a second service. When it was updated in the first service, the second one didnt know about it.
2. Signals dont work with objects, again no reactivity if one of the properties change. So far it's good for primitives only.

seekthetruth
Автор

Id like to see how you solve an array containing multiple signals.
Where you could append or pop signals in the array, together with a trackBy in the template.

This would mean that we first off have a template that only emits changes to the changed signal due to trackBy, but also only reacts on the signal change of that specific iteration in the array.

Meaning that we only emit one event in a list of array, without computing the rest of the unchanged entries in the array?

BrutalCSkAKAN
Автор

please produce a video on how to embed signals inside an HTML template which now fixes the problem of not needing to embed methods which were an anti-pattern.

digital-signage
Автор

I'm planning to move away from ngrx (global) state management to signals. One reason is because of the boilerplate needed to setup ngrx(actions, effects and reducers). What are your thoughts on this? Do you think this is ok?

michaelrtan
Автор

It’s looks like the pattern with service with private behaviorsubject and a public derived observable 👍🏻

Nabulio
Автор

Hello, I just want to ask if signals are production ready on angular 17? thanks

michaeltan
Автор

I don't understand why I need use signals instead of Subjects?

edebcxo