Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

ModelSignal

ModelSignal represents a special Signal for a directive/component model field.

See more...

      
      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.