Angular's New Signal Inputs

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

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

  • @mitch1668
    @mitch1668 2 หลายเดือนก่อน +1

    Wow, I feel like I found a gem in a cave full of TH-cam tutorials. Clean explaining, in-depth and simple. Subscribed!

    • @deborah_kurata
      @deborah_kurata  2 หลายเดือนก่อน

      Awesome, thank you! 😊

  • @GuillermoArellano
    @GuillermoArellano 6 หลายเดือนก่อน +3

    I am always learning something new from Deborah. Thank you!

    • @deborah_kurata
      @deborah_kurata  6 หลายเดือนก่อน

      That's so nice of you to say. Thank you.

  • @rahulxdd
    @rahulxdd 6 หลายเดือนก่อน +2

    Great video to understand signal based inputs. Thank you for including the stackblitz.

    • @deborah_kurata
      @deborah_kurata  6 หลายเดือนก่อน +1

      Glad it was helpful! 😊

  • @cristobalcanas5189
    @cristobalcanas5189 5 หลายเดือนก่อน +2

    I love your content. Great video! Angular 17 is rocking

    • @deborah_kurata
      @deborah_kurata  5 หลายเดือนก่อน

      Awesome, thank you! Angular is getting better and better!

  • @richarddefortune1329
    @richarddefortune1329 6 หลายเดือนก่อน +2

    Brilliant! I love the "transform" part. @Input() could be use with a setter. With input signal, I was wondering whether to use a computed variable just to process the incoming data.
    Thanks as usually.

    • @deborah_kurata
      @deborah_kurata  6 หลายเดือนก่อน +2

      Thank you! Yes, the transform is amazingly powerful.
      Regarding using a computed signal, that depends on what you are doing with that incoming data. In my example, using a computed made filtering the list easy and reactive. Any time you need to react to a change in that incoming variable, computed is very helpful.
      What are you doing with the incoming data? Does it need to react to changes?

    • @richarddefortune1329
      @richarddefortune1329 6 หลายเดือนก่อน +1

      @@deborah_kurata My case was similar to what you did in video. The value being sent is an enum. Once user select a different value, some formControls will be displayed/hidden and the formGroup updated. The @Input() setter will check the incoming will call the method that contains the logic.
      Since there's nothing like that in input signal, that's why I was thinking about using a computed value just to react to the input signal 😇. I'm glad we've the transform method.

  • @juliojimenez450
    @juliojimenez450 5 หลายเดือนก่อน

    Another great video Deborah!
    I am currently working on a component that contains a ‘signal input’ and from that signal I need to do a ‘Fetching Data as Side Effect’.
    I have only been able to achieve this by incorporating the option ‘allowSignalWrites: true’ in the effect that makes the API call, which is not recommended by angular members: ‘Using effects to synchronize data by writing to signals can lead to confusing and potentially incorrect behavior, and should be enabled only when necessary’.
    Some information about that would be awesome in one of your future videos!
    Thank you very much and keep up the good work with the channel! 😉👍

    • @deborah_kurata
      @deborah_kurata  5 หลายเดือนก่อน

      Thank you!
      As shown in this video, you can expand the binding from two-way to the long form: property binding and event binding. Then you can fetch the data within the method bound to the event. That way you don't need to use an effect.
      Does that seem like it would work for you?

  • @raj.blazers
    @raj.blazers 2 หลายเดือนก่อน

    Great tutorial and great explanation. Concepts nailed to the point. I started watching the other videos as well.

  • @deepakkumarmohapatra4760
    @deepakkumarmohapatra4760 3 หลายเดือนก่อน

    just wow, thanks Deborah🤩

  • @gabrielporto3936
    @gabrielporto3936 6 หลายเดือนก่อน

    I'm new here and i was very very impressed with yours videos Deborah, thank you!

    • @deborah_kurata
      @deborah_kurata  6 หลายเดือนก่อน

      Glad you like them! 😊

  • @renrenklein_th
    @renrenklein_th 6 หลายเดือนก่อน +2

    Well I learned something new from this, great as always. Thanks ^_^

    • @deborah_kurata
      @deborah_kurata  6 หลายเดือนก่อน +1

      Glad to hear it it was useful. Thank you! 😊

  • @joeyvico
    @joeyvico 6 หลายเดือนก่อน

    Wonderful tutorial, as usual Deborah

  • @yojanmorales
    @yojanmorales 6 หลายเดือนก่อน

    clear as water, I love these videos

  • @kishoreandra
    @kishoreandra 6 หลายเดือนก่อน

    wow, great tutorial .. its so clear even for a beginner to Angular like me 💯

    • @deborah_kurata
      @deborah_kurata  6 หลายเดือนก่อน +1

      Glad to hear that! Thank you! 😊

  • @ashishnayak2666
    @ashishnayak2666 5 หลายเดือนก่อน

    Excellent. Clear explanation 👌 👏 👍

  • @praku78
    @praku78 5 หลายเดือนก่อน

    Thanks for the excellent Video, it helps to learn easily. I have a question as we started using this new signal concept, how different its from Reactive forms, can we use along with reactive forms? or should not use it?

    • @deborah_kurata
      @deborah_kurata  5 หลายเดือนก่อน +1

      Thank you for the kind words.
      Signal inputs are for communication between a parent component and it's child component. They aren't useful for forms.
      The Angular team is working on adding signals to their forms approach, but it's not available yet.

    • @praku78
      @praku78 4 หลายเดือนก่อน

      Thank you! :)

  • @rkrao8582
    @rkrao8582 2 หลายเดือนก่อน

    I have been going through your signal Videos they are really great.
    I have a question here so I am using Angular 18 and I have my parent component declared with every property as signal and passing one of the signal to child component as input. So in this case it should be fine right? Right now I am not seeing any errors but all the videos that I saw on signal inputs using a general value being passed from parent to child then in child using signal inputs .

    • @deborah_kurata
      @deborah_kurata  2 หลายเดือนก่อน

      Thank you!
      What you are doing *sounds* right, but I'd have to see some code to be sure. If you want to create a small, focused, StackBlitz example I'd be happy to take a look.
      YT doesn't allow links in replies, so send me the StackBlitz using only the project name ( ~/edit/***whatever is here). That should make it past the post validation.

  • @kashifalikhan4420
    @kashifalikhan4420 5 หลายเดือนก่อน

    Very well explained

  • @naspy971
    @naspy971 6 หลายเดือนก่อน

    Very clear, thanks ma'am

  • @patrickkabuga4945
    @patrickkabuga4945 5 หลายเดือนก่อน

    Great video, Thanks

    • @deborah_kurata
      @deborah_kurata  5 หลายเดือนก่อน

      Thanks! Glad you liked it!

  • @AntonioSantana-ll8il
    @AntonioSantana-ll8il 5 หลายเดือนก่อน

    Excellent video!!

    • @deborah_kurata
      @deborah_kurata  5 หลายเดือนก่อน

      Thank you very much!

  • @Erril_Ferndal
    @Erril_Ferndal 5 หลายเดือนก่อน

    Amazing videos :)

  • @rishukumar7586
    @rishukumar7586 4 หลายเดือนก่อน

    is there is a way to check signal is defined or not in template ?

  • @caseyspaulding
    @caseyspaulding 6 หลายเดือนก่อน

    Thank you!

  • @sk8osner
    @sk8osner 5 หลายเดือนก่อน

    I have a question, how can the computed property be used with an input that an object receives, is it necessary to change the object reference?

    • @deborah_kurata
      @deborah_kurata  5 หลายเดือนก่อน +1

      Yes. Something like this: this.selectedVehicle.update(v => ({...v, price: v.price + (v.price * 0.2)}))
      I have a Stackblitz here: stackblitz.com/edit/angular-signals-v17-deborahk

    • @sk8osner
      @sk8osner 5 หลายเดือนก่อน

      @@deborah_kurata just changing the object reference, is there a way to make it like this in VueJS? are the reactive type variables

    • @deborah_kurata
      @deborah_kurata  5 หลายเดือนก่อน

      @@sk8osner I don't know Vue, so don't know the answer to this question.

    • @sk8osner
      @sk8osner 5 หลายเดือนก่อน +1

      @@deborah_kurata reactive listens to the changes of any nested property of an object, without having to change its reference, thanks for your response

  • @raj.blazers
    @raj.blazers 2 หลายเดือนก่อน

    I hope Angular regains its popularity in 2024 so that I don't need to continuously update with the react ecosystem (which I don't like compared to angular)

    • @deborah_kurata
      @deborah_kurata  2 หลายเดือนก่อน +1

      From where I'm sitting, Angular is pretty popular. 😊

  • @prasoon2510
    @prasoon2510 2 หลายเดือนก่อน

    What is the difference between computed and effect ??

    • @deborah_kurata
      @deborah_kurata  2 หลายเดือนก่อน

      Computed creates a signal from one or more other signals. Like calculating a total price signal based on the quantity signal and price signal.
      An effect executes code when one of it's referenced signals change. It doesn't create a signal. For example, every time the user updates their display name (stored in a signal) an effect automatically saves that name to local storage.
      Did that help?

    • @prasoon2510
      @prasoon2510 2 หลายเดือนก่อน

      @@deborah_kurata
      Yes got it, thanks.. 😊

    • @prasoon2510
      @prasoon2510 หลายเดือนก่อน +1

      How to handle API calls using signals?
      It’s mandatory to use effect in component to get the response?
      Can you create a video?
      From component.ts to store to http service call

    • @deborah_kurata
      @deborah_kurata  หลายเดือนก่อน

      Have you seen this video? th-cam.com/video/rHQa4SpekaA/w-d-xo.html

    • @prasoon2510
      @prasoon2510 หลายเดือนก่อน

      @@deborah_kurata I will check it and will let you know..

  • @TheEuphoricism
    @TheEuphoricism 6 หลายเดือนก่อน

    doesnt all of this just feel like RXJS with handcuffs on?

    • @deborah_kurata
      @deborah_kurata  5 หลายเดือนก่อน +1

      In what respect?
      signals are synchronous and focused on simplifying the template's change detection.
      RxJS can be synchronous or async (but most often used for async) and is focused on event-based notifications.
      Ben Lesh (the lead developer of RxJS) covered this well in a set of posts here: x.com/BenLesh/status/1775207971410039230

  • @marcelovizcarra188
    @marcelovizcarra188 6 หลายเดือนก่อน +1

    Nice! It would be awesome if you can review the new output signal in another video as well 😊

    • @deborah_kurata
      @deborah_kurata  6 หลายเดือนก่อน +2

      Coming soon! Thank you! 😊

  • @shrek1478
    @shrek1478 6 หลายเดือนก่อน

    thx

  • @igorr4682
    @igorr4682 6 หลายเดือนก่อน

    More and more Angular reminds me of React or VUE.js

    • @deborah_kurata
      @deborah_kurata  5 หลายเดือนก่อน

      Is that a good thing?

  • @alexpanteli3651
    @alexpanteli3651 6 หลายเดือนก่อน +1

    Bootstrap in 2024?

    • @deborah_kurata
      @deborah_kurata  6 หลายเดือนก่อน +3

      Is there something else you would suggest? I didn't want to add the "heaviness" that is Material for a sample app.

    • @alexpanteli3651
      @alexpanteli3651 6 หลายเดือนก่อน

      @@deborah_kurataModern CSS comes equipped with built-in grid functionality, eliminating the necessity for additional Bootstrap classes or Tailwind as an alternative for quick prototyping. I am a huge fan of your Angular tutorials by the way.

    • @deborah_kurata
      @deborah_kurata  6 หลายเดือนก่อน +3

      Thank you! I haven't used Tailwind. I definitely need to check out the CSS Grid.

    • @FUNc4l4v3r4
      @FUNc4l4v3r4 5 หลายเดือนก่อน +1

      ​@@deborah_kurata Tailwind is great for fast prototyping.