On this page
effect
function
developer preview
Create a global Effect
for the given reactive function.
effect(effectFn: (onCleanup: EffectCleanupRegisterFn) => void, options?: CreateEffectOptions): EffectRef
Parameters
effectFn |
(onCleanup: EffectCleanupRegisterFn) => void |
|
options |
CreateEffectOptions |
Optional. Default is |
Returns
© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/core/effect