W3cubDocs

/Angular

computed

function developer preview

Create a computed Signal which derives a reactive value from an expression.

computed<T>(computation: () => T, options?: CreateComputedOptions<T>): Signal<T>

Parameters
computation () => T
options CreateComputedOptions<T>

Optional. Default is undefined.

Returns

Signal<T>

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