This media is not supported in your browser
VIEW IN TELEGRAM
π Angular Signals: untracked function
#angular #signals #untrackted
π© > Angular 17
β Article link
#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:
#js #abortSignal #any
β Article link
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
π€ Replacing Static Inputs with the Host Attribute Token
#angular #decorator #Attribute #HostAttributeToken
π© > Angular 17
β Article link
#angular #decorator #Attribute #HostAttributeToken
π© > Angular 17
β Article link
π1