ModelSignal
ModelSignal
represents a special Signal
for a directive/component model field.
interface ModelSignal<T> extends WritableSignal<T>, OutputRef<T> {
// inherited from core/WritableSignal
set(value: T): void
update(updateFn: (value: T) => T): void
asReadonly(): Signal<T>
// inherited from core/OutputRef
subscribe(callback: (value: T) => void): OutputRefSubscription
}
Description
A model signal is a writeable signal that can be exposed as an output. Whenever its value is updated, it emits to the output.