Change detection and Angular signals in Angular v16

Поделиться
HTML-код
  • Опубликовано: 9 фев 2025
  • Learn about the exciting news regarding Angular signals, and how these features help build better apps. Find out how to get started with Angular signals now that it’s available for developer preview.
    Learn more about Angular v16 → goo.gle/angula...
    Angular signals → goo.gle/angula...
    Watch more videos about Angular v16 → goo.gle/Angula...
    Subscribe to Angular → goo.gle/Angular
    #Angular

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

  • @Angular
    @Angular  Год назад +4

    Learn more about Angular v16 → goo.gle/angular-v16
    Angular signals → goo.gle/angular-singals

  • @Brendan2Alexander
    @Brendan2Alexander Год назад +10

    Simple video but all I needed to get bopping with signals. Thank u!

  • @MZ-uv3sr
    @MZ-uv3sr 6 месяцев назад +2

    This woman is a good presenter, very clear.

  • @yufgyug3735
    @yufgyug3735 Год назад +4

    Great stuff, will update my applications as soon as it is production ready!

    • @Angular
      @Angular  Год назад +1

      Yes! What's a problem this syntax solves for you?

    • @yufgyug3735
      @yufgyug3735 Год назад +2

      @@Angular i imagine using far fewer async pipes thanks to signals

  • @ancientelevator9
    @ancientelevator9 Год назад +5

    Love the naming; super intuitive!

  • @VoyageofLittleLiya
    @VoyageofLittleLiya Год назад +5

    Please explain real time implementation of signals and computed with their pros & cons.

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

    Signals introductory tutorial starts at @1:46

  • @indianthuglife2395
    @indianthuglife2395 3 месяца назад

    So for taking advantage of signals, and update only whats changed, should we default change detection strategy to on push ?

  • @brampeirsful
    @brampeirsful Год назад +9

    FYI: Signals link not working.

    • @Angular
      @Angular  Год назад +2

      Sorry, try this out: angular.io/guide/signals

  • @indylawi5021
    @indylawi5021 Год назад +4

    Thx for the info. Looking forward to using Signals. Glad Angular is moving in this direction.

  • @its_vincesanity
    @its_vincesanity Год назад +2

    I'm not sure if I understand it correctly: Is the goal to go away from the "classic" 2-way-binding approach? That would be a bummer

    • @rickelmonoggin
      @rickelmonoggin Год назад +2

      yes, it's going to change: inputs and outputs will be implemented with signals, not with decorators; but it will be backwards compatible so old code won't break when you update Angular.

    • @its_vincesanity
      @its_vincesanity Год назад +2

      @@rickelmonoggin thanks for your answer, but I meant more about in general. If we still with have two-way-binding or a React-like concept for Angular as whole.

  • @Nafiganado
    @Nafiganado Год назад

    What are the alternatives to mimic this approach in Angular 15?

  • @mugatu2017
    @mugatu2017 Год назад +8

    spending time learning ngrx, rxjs , reactive forms,...for nothing, thanks angular

    • @Angular
      @Angular  Год назад +8

      Signals will be interoperable with RxJS and we haven't finalized the Reactive Forms story just yet. We're also working with library authors on this stuff, too! So your hard work isn't all for nothing :)

  • @techduke9511
    @techduke9511 Год назад

    Angular team, how can i upgrade my angular application from version 12 to v.15, in between i facing lots of dependency conflicts ?

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

    Is signal similar to ref in Vue and effect similar to Vue's watch?

  • @bottletyre
    @bottletyre 6 месяцев назад

    Angular Signals: A reactive approach, with features from Vue and React combined !

  • @amirmehrizi6045
    @amirmehrizi6045 Год назад +8

    the core concept is derived from the React useState and useEffect hook to update the DOM.

    • @marcel5235
      @marcel5235 Год назад +4

      not the concept but DX,
      under the hood there is no VDOM or working loop, it uses shadow dom and render pipelines ( in theory this can be faster than VDOM ), signals are inspired more by Solid than React

    • @mac.ignacio
      @mac.ignacio Год назад +1

      hahaha don't push the react concept on Angular. It will never suffice. Angular doesnt have a VDom. REACT is not REACTIVE. REACT has a false reactivity concept.

  • @sjk9128
    @sjk9128 Год назад

    Somehow, I’m more comfortable with rxjs than signals, only feature I didn’t like in ng is depending on ngOnchange instead reactive inputs.

  • @compton8301
    @compton8301 Год назад

    Interesting.
    Thank you.

  • @powerbit
    @powerbit Год назад

    Good ,Thanks.

  • @beeeeeeeeeeep
    @beeeeeeeeeeep Год назад +1

    Wrong link: singals -> signals

  • @vedantmandwe5326
    @vedantmandwe5326 Год назад

    So interesting

  • @SALEEEEM73
    @SALEEEEM73 Год назад

    How to call a function on signal change.
    Effect is one function, how we know which signal changed thatswhy effect called.

    • @SkillnoMusic
      @SkillnoMusic Год назад +1

      "When the value of the signal they USE change"

    • @Mego4884
      @Mego4884 Год назад +1

      When you defined function effect( () => { signal1(); signal2(); } ) then effect( () => { signal1(); signal3(); } ) - so when signal2 is updated, then the first effect function will be called, when signal3 is updated then the second effect will be called. When signal1 is updated - then both effect will be called. I hope I got it right :)

  • @longuinni
    @longuinni Год назад

    Almost like mobx

  • @hendrx
    @hendrx Год назад +2

    This video format is horrible it takes 2 minutes to get to the 1 minute point.
    2:00 skip to here guys

  • @m33gs
    @m33gs Год назад

    Did someone give angular the apple 'new product' script ? like damn

  • @nathanalberg
    @nathanalberg Год назад

    sweet

  • @yuriimarshalofficial
    @yuriimarshalofficial Год назад

    takeUntilDestroy and signals - when you use own framework and tired to type all that spaghetti (me too) 😄
    that's what I call user friendly! Guys you are brilliant!

  • @mac.ignacio
    @mac.ignacio Год назад

    ReactJS is not reactive.

  • @FelixKirchhoff-je9pq
    @FelixKirchhoff-je9pq 7 месяцев назад

    thats heavily influenced by solid.js signals.

  • @shashankvivek4812
    @shashankvivek4812 Год назад +3

    Why so many major changes all the time? 1st from Angular Js to Angular 2 , which shook confidence of consumer who put money in Angular Js. Now we will have libraries with old way and signal way. Doesn't boost my confidence with these Fancy stuffs .

    • @Mego4884
      @Mego4884 Год назад

      This is not breaking change, this is just optional feature which you can use for your benefits. But it's also perfectly fine to do as you are used to :)

    • @shashankvivek4812
      @shashankvivek4812 Год назад +3

      @@Mego4884 I agree but I think it would be more confusing for new devs to understand both approach. Angular already requires steep learning curve. I have been working on angular since 2016 , and I feel that it is gonna solve important problem but will bring more complexity with 2 diff approaches. All libs will start releasing 2 versions now. That's what I don't like

    • @Cheesyonmytoasty
      @Cheesyonmytoasty Год назад +1

      It’s the angular way, it gets frustrating. Looks like a load of extra boiler plate to add more dev work where I thought Angular should be letting us code and sort out the updates to UI behind the scenes 🙄

    • @mugatu2017
      @mugatu2017 Год назад +1

      They take this new path without asking the community

    • @metaltear1
      @metaltear1 Год назад +5

      @@mugatu2017 they did a whole RFC about it to get community feedback

  • @mugatu2017
    @mugatu2017 Год назад +5

    angular is digging his own grave

    • @xXxDiukexXx
      @xXxDiukexXx Год назад +5

      Why do you think that?

    • @Simon-yf7fo
      @Simon-yf7fo Год назад +3

      Yea, I'd love to know that as well. Seems like a great change and no one forces you to use signals. If you dislike them just stick to rxjs

    • @JBuchmann
      @JBuchmann Год назад +4

      I think it's a great addition. Forever people complained about the Zone.js change detection being slow, inefficient, etc. I think Signals is their way to resolve that problem.

    • @avivbenshahar6422
      @avivbenshahar6422 Год назад +2

      It is a good solution and a pretty nice feature. The thing our friend here meant was that Angular core code base became so huge, that it’s almost impossible for a new developer to learn it all 😕
      That’s why breaking changes should not be avoided.

    • @skaffen
      @skaffen 11 месяцев назад +1

      Fear of change hurts way more.