🚨COMING SOON in Angular 17.2: SIGNAL COMPONENTS One Step Closer

Поделиться
HTML-код
  • Опубликовано: 22 окт 2024

Комментарии • 37

  • @AngularUniversity
    @AngularUniversity  8 месяцев назад +5

    Urgent upload everyone 😉 Angular 17.2 release candidate is out Check out the courses in the Angular University - angular-university.io/

  • @BBrooks96
    @BBrooks96 8 месяцев назад +5

    Best Angular channel on youtube!! Always keeps me using the latest features!

    • @AngularUniversity
      @AngularUniversity  8 месяцев назад +1

      Thank you so much, it's awesome to hear that. I'll keep the videos coming 😊

  • @panospcm
    @panospcm 8 месяцев назад +3

    Thanks for nice tutorial!
    whats the difference between ngModel and signal-based model?

    • @AngularUniversity
      @AngularUniversity  8 месяцев назад

      The main difference is the API, that it's signal-based or not. But the syntax and the concept is equivalent.

  • @LarsRyeJeppesen
    @LarsRyeJeppesen 8 месяцев назад +2

    And now it's out. Great

    • @AngularUniversity
      @AngularUniversity  8 месяцев назад

      Yes it was just out less than a day ago 👍😊

  • @PeterKlausSchmelzer
    @PeterKlausSchmelzer 4 месяца назад

    That is helpful.. ty..

  • @nathanalberg
    @nathanalberg 8 месяцев назад +4

    with the model example... can parentCounter be a signal? instead of a standard variable?

    • @AngularUniversity
      @AngularUniversity  8 месяцев назад

      That's a very good question, but no I just tried it and it least of right now, it doesn't work.

    • @yankotliarov9239
      @yankotliarov9239 8 месяцев назад

      Model signal is essentially the same as before which used (valueChange)="value = $event" under the hood
      If you want signal to signal binding you can just pass signal as input without reading from it [signalValue]="value". value = signal()

    • @alex.zaslavskyi
      @alex.zaslavskyi 8 месяцев назад

      I've heard that passing signal without reading it is anti-pattern.
      I just tried to declare parentCounter as model() as well and looks like it's working. I have model signals on both sides, parent component and child component. I don't know if it's good or bad, but it works)

  • @Vega2Juan
    @Vega2Juan 8 месяцев назад

    I enjoy watching these videos and they're extremely helpful. But do you have the source code available somewhere?

    • @AngularUniversity
      @AngularUniversity  8 месяцев назад

      Thank you, it's awesome to hear that😊 I have them in a private repo, but my courses all have public repos you can find them here github.com/angular-university/

  • @aram5642
    @aram5642 8 месяцев назад +1

    I wonder how you'd solve loading a component dynamically, in response to a dropdown selection, and then setting some values to the newly loaded one (this usually requires a tick to pass before the component becomes ready). I tried that using signal view child and I failed.

    • @AngularUniversity
      @AngularUniversity  8 месяцев назад

      Try to load the component dynamically using the new @defer functionality instead of doing it manually blog.angular-university.io/angular-defer/

    • @aram5642
      @aram5642 8 месяцев назад

      @@AngularUniversity Thank you. I did, and I also used on timer(1) to "emulate" the tick needed, but I'm still not getting the reference to viewChild. Could be that I need to learn more ;-) Thanks for this great blog post about defer, by the way!

  • @LarsRyeJeppesen
    @LarsRyeJeppesen 8 месяцев назад +8

    Kids, do not use 2 way binding.

    • @AngularUniversity
      @AngularUniversity  8 месяцев назад +3

      Agreed Lars 😉 You just gave me an idea for another Mistakes video 😊👍

    • @manojht8036
      @manojht8036 8 месяцев назад +2

      I agree with him. Fully 🥲 because I am seeing 6 years old code which is very difficult to manage especially because I am the only one present in the team

    • @molnarszabby
      @molnarszabby 8 месяцев назад

      @@AngularUniversity I would be really curious of this mistakes video. When do you plan releasing such a video? Thanks in advance!

    • @AngularUniversity
      @AngularUniversity  8 месяцев назад

      @@molnarszabby Here is the Angular Mistakes playlist ruclips.net/video/3oq-gnDzz9k/видео.html Enjoy 😉

    • @molnarszabby
      @molnarszabby 8 месяцев назад

      @@AngularUniversity thanks a lot mate 😄

  • @Niachan666
    @Niachan666 8 месяцев назад

    nice

  • @LarsRyeJeppesen
    @LarsRyeJeppesen 8 месяцев назад +2

    17.2 it not out, just Release Candidate

  • @muditkhanna4795
    @muditkhanna4795 8 месяцев назад

    Why cant anyone explain signals with a better example other than counter? We need real world problems like tackling apis, complex objects. Who cares about counter?

    • @AngularUniversity
      @AngularUniversity  8 месяцев назад +1

      coming soon on this channel, stay tuned 😉

  • @michelvandermeiren8661
    @michelvandermeiren8661 8 месяцев назад

    Fed up with those ultra complex UI frameworks

    • @AngularUniversity
      @AngularUniversity  8 месяцев назад

      Angular is simpler than it sounds, especially if you use async/await and don't overuse RxJs. It's going to become even simpler with Signals. 😊

  • @draylegend
    @draylegend 8 месяцев назад

    for new commers it'd be great to get a difference between `viewChild/Children` and `viewChild/Children.required` and similar

    • @AngularUniversity
      @AngularUniversity  8 месяцев назад +1

      check out the community tab here on RUclips, I've made a carroussel showing the before and after.