GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Tutorials
  • Playground
  • Reference
  • code
  • ModelSignal
  • Signal
  • OutputRefSubscription

This view

  • Original page
  • New address

GeezerVison is showing angular.dev — ModelSignal • Angular

API

    
      interface ModelSignal<T> extends WritableSignal<T>, InputSignal<T>, OutputRef<T> {}
    
    

Directly set the signal to a new value, and notify any dependents.

@paramvalueT
@returnsvoid

Update the value of the signal based on its current value, and notify any dependents.

@paramupdateFn(value: T) => T
@returnsvoid

Returns a readonly version of this signal. Readonly signals can be accessed to read their value but can't be changed using set or update methods. The readonly signals do not have any built-in mechanism that would prevent deep-mutation of their value.

@returnsSignal<T>

Registers a callback that is invoked whenever the output emits a new value of type T.

Angular will automatically clean up the subscription when the directive/component of the output is destroyed.

@paramcallback(value: T) => void
@returnsOutputRefSubscription

Description

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

A model signal is a writeable signal that can be exposed as an output. Whenever its value is updated, it emits to the output.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.