LinkedSignal in Angular 19: The Gem We Were Missing

Поділитися
Вставка
  • Опубліковано 7 лют 2025

КОМЕНТАРІ • 51

  • @DecodedFrontend
    @DecodedFrontend  10 днів тому

    🔥 Advanced Angular Courses - bit.ly/df-courses
    More than 45 hours of Advanced Angular content 🚀

  • @carlosmarararara3416
    @carlosmarararara3416 10 днів тому +10

    what a clear and right to the point explanation, thanks!

    • @DecodedFrontend
      @DecodedFrontend  10 днів тому +1

      Thank you for taking time for this comment! I am glad that you found this video useful

  • @Ferhaps1405
    @Ferhaps1405 9 днів тому +3

    Fantastic demonstration as always!!! 👊🏼

  • @NevelWong
    @NevelWong 9 днів тому +1

    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!

  • @mehmeh533
    @mehmeh533 8 днів тому +1

    YES!!! I have been struggling to fully implement signals without this! AWESOME!!!!!! LOVE IT!!!!

  • @DraaElMizan
    @DraaElMizan 9 днів тому +2

    Very nice way of demonstrating the usefulness of linkedsignal. Thanks for sharing.

  • @codeSurvivor
    @codeSurvivor 10 днів тому +1

    ❤️ Thanks Dmytro! Great, as usual! 😊

  • @michaelrobinson5981
    @michaelrobinson5981 10 днів тому +3

    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.

    • @DecodedFrontend
      @DecodedFrontend  10 днів тому +2

      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 :)

  • @joudabuchahda9078
    @joudabuchahda9078 7 днів тому +1

    short video and clear. Thank you

  • @aliqb2119
    @aliqb2119 8 днів тому +1

    I am happy that I find your channel

  • @innaatanassoff525
    @innaatanassoff525 10 днів тому +1

    Great tutorial! Every time you post I hope that you announce you will be releasing an advanced Angular course :)

  • @sergeyryshkevich3377
    @sergeyryshkevich3377 9 днів тому +1

    perfect as usual

  • @PauloSantos-yu1tn
    @PauloSantos-yu1tn 9 днів тому +1

    Great video as always

  • @taiwokazeem9014
    @taiwokazeem9014 10 днів тому +1

    lovely, glad to have subscribed🥰

  • @3boodon
    @3boodon 10 днів тому +1

    Amazing tutorial as always ✨

  • @HoNow222
    @HoNow222 7 днів тому +2

    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?

    • @DecodedFrontend
      @DecodedFrontend  7 днів тому

      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.

  • @andrii_vorona
    @andrii_vorona 9 днів тому +1

    Great, thanks a lot for the video.

  • @EmilioDegiovanni
    @EmilioDegiovanni 10 днів тому +1

    Great video as usual!!!

    • @DecodedFrontend
      @DecodedFrontend  10 днів тому

      Glad you enjoyed it! Thank you for your comment, Emilio!

  • @gagiksimonyan3782
    @gagiksimonyan3782 10 днів тому

    Thanks for another useful video, Dmytro) hope linkedSignal and Resource API will become stable soon

  • @amrezzat2192
    @amrezzat2192 8 днів тому +1

    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.

    • @DecodedFrontend
      @DecodedFrontend  6 днів тому +1

      Hey! thanks for your idea. I will consider it for sure ;)

    • @amrezzat2192
      @amrezzat2192 5 днів тому

      @@DecodedFrontend Thank you, much appreciated!

  • @eugeneromanenko5960
    @eugeneromanenko5960 9 днів тому +1

    What is the reason to use "||" for a default value, not "??"?

    • @DecodedFrontend
      @DecodedFrontend  9 днів тому

      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 :)

  • @shreyanshjain9479
    @shreyanshjain9479 9 днів тому +1

    What if use model instead input. Ithink that will also work!

  • @3boodon
    @3boodon 10 днів тому

    Discord invitation link isn't working

    • @DecodedFrontend
      @DecodedFrontend  10 днів тому +1

      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

    • @3boodon
      @3boodon 10 днів тому

      @@DecodedFrontend I tried both and they didn't work

    • @DecodedFrontend
      @DecodedFrontend  5 днів тому

      Did the one from the comment above work out?

  • @hasokeric1362
    @hasokeric1362 10 днів тому

    Wouldn't compute be enough for this why linkedSignal

    • @DecodedFrontend
      @DecodedFrontend  9 днів тому

      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.

  • @D9ID9I
    @D9ID9I 8 днів тому +1

    This is so awful. Hate the direction angular goes.

    • @DecodedFrontend
      @DecodedFrontend  6 днів тому

      Hey! Thanks for your opinion :) Why do you think so? What direction do you think would be better?