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