function injectThrottledValue<TValue>(source, options): AngularThrottlerValue<TValue>;Defined in: packages/angular-pacer/src/throttler/injectThrottledValue.ts:50
Creates an Angular throttled view of a source signal.
The initial source value is available on first read. The unchanged initial value does not enter the throttler. An effect passes subsequent source changes to the throttler; later changes replace the pending trailing value without restarting the interval.
The returned value is a real Angular signal with the underlying utility exposed on throttler. Options accept a static object or reactive factory and follow injectThrottler lifecycle and provider behavior.
TValue
() => TValue
The source signal or accessor whose changes are observed.
MaybeAccessor<AngularThrottlerOptions<(value) => void>>
Core options or a reactive options factory.
AngularThrottlerValue<TValue>
The value signal with a throttler attribute.
// In a component or service injection context.
const source = signal('initial')
const value = injectThrottledValue(source, { wait: 250 })
source.set('updated')
console.log(value())function injectThrottledValue<TValue, TSelected>(
source,
options,
selector): AngularThrottlerValue<TValue, TSelected>;Defined in: packages/angular-pacer/src/throttler/injectThrottledValue.ts:58
Creates the value signal with selected state on its attached utility ref.
TValue
TSelected
() => TValue
MaybeAccessor<AngularThrottlerOptions<(value) => void>>
(state) => TSelected
Selects reactive state exposed on the attached utility ref.
AngularThrottlerValue<TValue, TSelected>