function injectDebouncedSignal<TValue>(initialValue, options): AngularDebouncerSignal<TValue>;Defined in: packages/angular-pacer/src/debouncer/injectDebouncedSignal.ts:52
Creates an Angular debounced editable signal.
The initial value is available synchronously. set and update debounce writes: a newer write restarts the delay and replaces the pending write. An updater runs against the committed value when the delay expires.
The returned value is a real Angular writable signal with the underlying utility exposed on debouncer. Options accept a static object or reactive factory and follow injectDebouncer lifecycle and provider behavior.
TValue
MaybeAccessor<TValue>
The initial committed value.
MaybeAccessor<AngularDebouncerOptions<(value) => void>>
Core options or a reactive options factory.
AngularDebouncerSignal<TValue>
The writable signal with set, update, asReadonly, and a debouncer attribute.
// In a component or service injection context.
const value = injectDebouncedSignal(0, { wait: 250 })
value.set(10)
value.update(previous => previous + 1)
console.log(value())function injectDebouncedSignal<TValue, TSelected>(
initialValue,
options,
selector): AngularDebouncerSignal<TValue, TSelected>;Defined in: packages/angular-pacer/src/debouncer/injectDebouncedSignal.ts:62
Creates the value signal with selected state on its attached utility ref.
TValue
TSelected
MaybeAccessor<TValue>
MaybeAccessor<AngularDebouncerOptions<(value) => void>>
(state) => TSelected
Selects reactive state exposed on the attached utility ref.
AngularDebouncerSignal<TValue, TSelected>