First Look at Angular's new linkedSignal()

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ต.ค. 2024

ความคิดเห็น • 35

  • @Sandeepkishor123
    @Sandeepkishor123 5 ชั่วโมงที่ผ่านมา +1

    Thanks @Deborah,
    We always love your interesting videos.
    And as always, we hope all the features of Angular19 come through your channel first!!!

  • @f.ribas1
    @f.ribas1 วันที่ผ่านมา

    I never saw any value in using signals, but after watching your videos I simply love it and want to use it everywhere! Thank you for that!

    • @deborah_kurata
      @deborah_kurata  23 ชั่วโมงที่ผ่านมา

      Great to hear! Thanks for watching!

  • @mpumi1024
    @mpumi1024 วันที่ผ่านมา +1

    This is gonna be a game changer. Looks more readable and intuitive. Thank you

    • @deborah_kurata
      @deborah_kurata  วันที่ผ่านมา +1

      Yes! Great addition to the signal feature set.

  • @Brendan2Alexander
    @Brendan2Alexander 2 วันที่ผ่านมา +3

    Always love ur videos Deborah. Interesting topic here…thx for the heads up

    • @deborah_kurata
      @deborah_kurata  2 วันที่ผ่านมา +1

      Thanks! I expect to post more about it when it lands in a release.

  • @richarddefortune1329
    @richarddefortune1329 2 วันที่ผ่านมา +1

    Great material from the best angular teacher.
    I can't wait to use this feature.

    • @deborah_kurata
      @deborah_kurata  2 วันที่ผ่านมา

      Thank you!
      Yes! Looking forward to trying it out.

  • @chagamajaykumarreddy1897
    @chagamajaykumarreddy1897 2 วันที่ผ่านมา +4

    I am the one waiting for your tips always.

  • @wizard6928
    @wizard6928 วันที่ผ่านมา

    That's a great alternative for using effect!

  • @artur1998g
    @artur1998g วันที่ผ่านมา +1

    I just encountered with your channel. linkedSignal might be good.
    I already use most of the signals features in production, but still have some issues, like:
    1. viewChild signal returns inner component with a signal. And if I want to make computed signal based on inner component, I can’t, because there is the signal inside the signal.
    So, for this case I use the decorator ViewChild.
    2. reactive forms are great, but don’t support signals (e.g. valueChanges). I hope it will change in the future

    • @deborah_kurata
      @deborah_kurata  วันที่ผ่านมา +2

      Welcome!
      Yes, the Angular team has said that they plan to revisit forms and provide a better integration with signals. Hope it's soon!

  • @SamiullahKhan
    @SamiullahKhan วันที่ผ่านมา

    Yeah i felt the need for it since the begginig 😅 where i would use effect to write to signals to achieve the same effect

    • @deborah_kurata
      @deborah_kurata  วันที่ผ่านมา

      Yep! This is a great addition to the signal feature set.

  • @ranjan4elex
    @ranjan4elex 2 วันที่ผ่านมา +1

    Thanks for sharing this, ❤ your content as always. Is there any RFC for this, with more details on what Angular team is discussing on this?

    • @deborah_kurata
      @deborah_kurata  2 วันที่ผ่านมา +2

      Thank you! I would expect to see more info from the team in the next few days. I'll add the RFC link to the video notes when it's available.

    • @ranjan4elex
      @ranjan4elex วันที่ผ่านมา

      @@deborah_kurata thank you

  • @chaos_monster
    @chaos_monster 2 วันที่ผ่านมา

    I think for http requests the upcoming resource primitive is a better fit than linkedSignal

    • @deborah_kurata
      @deborah_kurata  2 วันที่ผ่านมา +1

      I'm currently planning to cover resource and rxResource in my next video.

  • @AnthonyDev
    @AnthonyDev 2 วันที่ผ่านมา

    Great vid, teacher. What about the new resources api? Will you record a video too? It works like tanstack query. 😀

    • @deborah_kurata
      @deborah_kurata  2 วันที่ผ่านมา +1

      Thank you!
      Yes, my current plan is to cover resource and rxResource in my next video.

  • @SbtPanja
    @SbtPanja 2 วันที่ผ่านมา +1

    I'm a big fan

    • @deborah_kurata
      @deborah_kurata  2 วันที่ผ่านมา

      Thank you so much! 😊

  • @Cescolainen
    @Cescolainen วันที่ผ่านมา

    How did you solve this kind of problem without the linkedSignal?

    • @f.ribas1
      @f.ribas1 วันที่ผ่านมา

      The way I found was to convert the signal to observable and then updating the value.

    • @deborah_kurata
      @deborah_kurata  23 ชั่วโมงที่ผ่านมา

      I often had to fall back to a more procedural approach and add code to an event.
      Something like this:
      onProductSelected(p: Product) {
      this.selectedProduct.set(p);
      this.quantity.set(1);
      }
      But then I'd also have to add the code to reset the quantity anywhere else the product could change, such as deep linking.
      With linkedSignal, we can declaratively define the quantity and when it should reset. No need to add code anywhere the selected product could change.

  • @DejanFilipov-gv8qz
    @DejanFilipov-gv8qz 2 วันที่ผ่านมา

    Teacher 💙

  • @kardashevr
    @kardashevr วันที่ผ่านมา

    looks like a more complicated version of model()

    • @deborah_kurata
      @deborah_kurata  22 ชั่วโมงที่ผ่านมา

      The model() is for two-way binding with a child component. The linkedSignal() works with or without child components. It allows one signal to affect another without making it read-only or having to use an effect.