Local Change Detection in Angular is easy with Signals

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

КОМЕНТАРІ • 25

  • @ilirbeqiri253
    @ilirbeqiri253 11 місяців тому +3

    Great explanation there man. Thanks a lot ❤️
    Just one thing that I noticed is that you call .update fn to update signal value but still extract the signal’s value itself instead of using the one provided by default from the update fn itself. Just mentionin for not causing confusion.
    Thanks again🎉🎉

    • @CodeShotsWithProfanis
      @CodeShotsWithProfanis  11 місяців тому

      ohh yeah. Thanks for that. It seems that I combined a syntax of set along with update :)
      The correct should be
      this.#counter.update((value) => value - 1);
      or
      this.#counter.set(this.#counter() - 1);

  • @thomaslhomme6857
    @thomaslhomme6857 9 місяців тому +2

    Exactly what I was looking for. Thanks!

  • @SebastianEcheverry-mp7ti
    @SebastianEcheverry-mp7ti 10 місяців тому +1

    this is really time saving

  • @DraaElMizan
    @DraaElMizan 11 місяців тому

    Brilliant, can't wait for a full implementation of signals in Angular. Thanks for sharing Profanis. Please keep the tuts coming.

  • @georgespanos4680
    @georgespanos4680 11 місяців тому +1

    Awesome Fanis!!!

  • @sergiokagiema9658
    @sergiokagiema9658 8 місяців тому

    Excellent example! Well done!

  • @HarshitDwivedi-p8m
    @HarshitDwivedi-p8m 3 місяці тому

    thanks for great demo 😊. I have one doubt. will this implementation work with Zoneless architecture or with earlier version too?

  • @Nabulio85
    @Nabulio85 9 місяців тому +1

    Great demo!❤

  • @tarasshevchuk8477
    @tarasshevchuk8477 11 місяців тому

    Thank you Fanis for very good explanation !!!

  • @andersonantunes3287
    @andersonantunes3287 9 місяців тому

    Excellent video, congrats. One more subscriber

  • @ansumanmishra9608
    @ansumanmishra9608 11 місяців тому

    Excellent tutorial ❤

  • @malikrajat
    @malikrajat 11 місяців тому

    Thanks sharing, It really a knowledge heavy video. I have request, Can you please share git repo for this code base

  • @andersonantunes3287
    @andersonantunes3287 9 місяців тому

    I didn't know this way of obtaining the click event using `fromEvent` from `RXJS`. Is it possible to obtain the same result as `fromEvent` in relation to ancestral components using something native to Angular?

    • @CodeShotsWithProfanis
      @CodeShotsWithProfanis  9 місяців тому +1

      I would expect the Signal Components (they are not yet there), or a zonelss change detection would do the trick natively. This is the PR of the zoneless provider github.com/angular/angular/pull/55329

    • @andersonantunes3287
      @andersonantunes3287 9 місяців тому

      @@CodeShotsWithProfanis Thanks for the information, I'll wait for the new version to test

  • @zaferdemir4680
    @zaferdemir4680 11 місяців тому

    Great! How about new signal model? There is just a simple examples on angular dev. Can you please share on a new video complex signal model code base?

    • @CodeShotsWithProfanis
      @CodeShotsWithProfanis  11 місяців тому +1

      Thanks for asking. Indeed the Signal Model will be one of my next videos

  • @cdotforce
    @cdotforce 11 місяців тому

    Cool!

  • @utsahpaikray
    @utsahpaikray 10 місяців тому

    Great