Function: bindSignalToTracker()
bindSignalToTracker(
source,target):EffectHandle
Defined in: src/core/signals.ts:362
Bind a signal to a numeric holder such as a ValueTracker: whenever the
signal changes, the holder's value is updated. The initial value propagates
immediately.
Parameters
source
Accessor<number>
A readable signal (or any accessor) of a number.
target
The holder to drive (for example a ValueTracker).
Returns
A handle whose dispose stops the binding.