Very cool. I personally solved this issue by going zoneless, and by initializing some of my signals within the htmx template. That way inputs are initialized, and the full injection context is available. But this proposal is so much more elegant!
This example clicked a lot more for me than the one in the Angular docs, thank you! Logically, LinkedSignal seemed useful, but seeing this example in the first few minutes solidified the potential. On the topic of effect: I work in a codebase that is slowly migrating to signals, and I find myself using effects to provide a bridge to our "data service" + rxjs + event bus architecture.
Thank you for this comment. I appreciate it a lot and I am glad to hear that you liked the example :) Yeah... well, as a temporary solution the effect might work, but for the long term I would think about alternatives :)
Hi! Thanks for your question. The computation function is involved ONLY when changes the value of the signal “reactions” in the linkedSignal’s “source”. Click on the reaction itself doesn't change the reactions signal value, so that's why it is not reset to null.
Can you please make a video tutorial on deploying an Angular 19 application with SSR and i18n enabled on Vercel or Netlify? I've tried multiple times, but I haven’t been able to get it working.
Unlike ??, the || operator returns right-side expression if the left-side returns truthy value, which handles empty string which theoretically can appear in the array of reactions and I want to treat such value as “unselected”. But fairly speaking, I didn’t pay to much attention to this because this is not a production code and doesn’t directly related to the topic :)
Thanks for reporting. Doesn't work the link from description or the QR code from the video? In any case, you can try this link I just created for you - discord.gg/UfjMkKXZ
Hi! The answer to your question starts at 03:55 of the same video - ua-cam.com/video/IPVwJmD2ZFQ/v-deo.htmlsi=tNEqKDVxcv-bHemh&t=235 In short, the computed() returns a read-only signal, so you can't change its value.
🔥 Advanced Angular Courses - bit.ly/df-courses
More than 45 hours of Advanced Angular content 🚀
what a clear and right to the point explanation, thanks!
Thank you for taking time for this comment! I am glad that you found this video useful
Fantastic demonstration as always!!! 👊🏼
Thank you for the comment 👊
Very cool. I personally solved this issue by going zoneless, and by initializing some of my signals within the htmx template. That way inputs are initialized, and the full injection context is available. But this proposal is so much more elegant!
YES!!! I have been struggling to fully implement signals without this! AWESOME!!!!!! LOVE IT!!!!
Very nice way of demonstrating the usefulness of linkedsignal. Thanks for sharing.
You are welcome! I am glad it was useful 🙌
❤️ Thanks Dmytro! Great, as usual! 😊
Thank you! Glad you it was useful 😉
This example clicked a lot more for me than the one in the Angular docs, thank you!
Logically, LinkedSignal seemed useful, but seeing this example in the first few minutes solidified the potential.
On the topic of effect: I work in a codebase that is slowly migrating to signals, and I find myself using effects to provide a bridge to our "data service" + rxjs + event bus architecture.
Thank you for this comment. I appreciate it a lot and I am glad to hear that you liked the example :)
Yeah... well, as a temporary solution the effect might work, but for the long term I would think about alternatives :)
short video and clear. Thank you
Glad it was helpful! :)
I am happy that I find your channel
Thank you! I am happy too ;)
Great tutorial! Every time you post I hope that you announce you will be releasing an advanced Angular course :)
One day it will happen ;)
perfect as usual
Thank you 🙌
Great video as always
Thank you 🙌🏻
lovely, glad to have subscribed🥰
Amazing tutorial as always ✨
Thank you! :)
I dont understand how the code at 10:30 works for selectedReaction, if the computation returns null, how is an emoji even selected at click?
Hi! Thanks for your question. The computation function is involved ONLY when changes the value of the signal “reactions” in the linkedSignal’s “source”. Click on the reaction itself doesn't change the reactions signal value, so that's why it is not reset to null.
Great, thanks a lot for the video.
Thanks for the comment!
Great video as usual!!!
Glad you enjoyed it! Thank you for your comment, Emilio!
Thanks for another useful video, Dmytro) hope linkedSignal and Resource API will become stable soon
Thank you! I also hope so :)
Can you please make a video tutorial on deploying an Angular 19 application with SSR and i18n enabled on Vercel or Netlify?
I've tried multiple times, but I haven’t been able to get it working.
Hey! thanks for your idea. I will consider it for sure ;)
@@DecodedFrontend Thank you, much appreciated!
What is the reason to use "||" for a default value, not "??"?
Unlike ??, the || operator returns right-side expression if the left-side returns truthy value, which handles empty string which theoretically can appear in the array of reactions and I want to treat such value as “unselected”. But fairly speaking, I didn’t pay to much attention to this because this is not a production code and doesn’t directly related to the topic :)
What if use model instead input. Ithink that will also work!
it should work with model input too😊
Discord invitation link isn't working
Thanks for reporting. Doesn't work the link from description or the QR code from the video? In any case, you can try this link I just created for you - discord.gg/UfjMkKXZ
@@DecodedFrontend I tried both and they didn't work
Did the one from the comment above work out?
Wouldn't compute be enough for this why linkedSignal
Hi! The answer to your question starts at 03:55 of the same video - ua-cam.com/video/IPVwJmD2ZFQ/v-deo.htmlsi=tNEqKDVxcv-bHemh&t=235
In short, the computed() returns a read-only signal, so you can't change its value.
This is so awful. Hate the direction angular goes.
Hey! Thanks for your opinion :) Why do you think so? What direction do you think would be better?