Angular πŸ‡ΊπŸ‡¦ - practical notes
1.63K subscribers
1.6K photos
1 file
532 links
Angular - practical notes

This group is for posting practical notes for Angular developers. Mostly all posts are for quick implementation https://t.me/angular_practical_notes (Commenting on posts only in ENG and UA langs here). Welcome!
Download Telegram
This media is not supported in your browser
VIEW IN TELEGRAM
πŸ“„ Angular Signals: untracked function

#angular #signals #untrackted

untracked allows reading the value of a signal without making such signal a dependency of our computed signal or effect.

In this example, increasing the counter doesn’t trigger a new computation of info. Only a new name does so


name = signal('Angular');
counter = signal(0);

info = computed(
() =>
`The name is now "${this.name()}" and the
counter value was ${untracked(this.counter)} when
the name changed.`
);


🚩 > Angular 17

βœ… Article link
πŸ‘4
πŸ“„ JS: AbortSignal.any([...])

#js #abortSignal #any

The AbortSignal.any() static method enables combining multiple AbortSignal instances into one, facilitating coordinated abort actions. It accepts an iterable of abort signals and returns an AbortSignal that aborts whenever any of the input signals are aborted. The abort reason corresponds to the first signal that triggers the abortion.


βœ… Article link