W3cubDocs

/Angular

signal

function developer preview

Create a Signal that can be set or updated directly.

signal<T>(initialValue: T, options?: CreateSignalOptions<T>): WritableSignal<T>

Parameters
initialValue T
options CreateSignalOptions<T>

Optional. Default is undefined.

Returns

WritableSignal<T>

© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/core/signal