Options passed to the effect function.
injector
Injector | undefinedThe Injector in which to create the effect.
If this is not provided, the current injection context
will be used instead (via inject).
manualCleanup
boolean | undefinedWhether the effect should require manual cleanup.
If this is false (the default) the effect will automatically register itself to be cleaned up
with the current DestroyRef.
forceRoot
true | undefinedAlways create a root effect (which is scheduled as a microtask) regardless of whether effect
is called within a component.
allowSignalWrites
boolean | undefineddebugName
string | undefinedA debug name for the effect. Used in Angular DevTools to identify the effect.
Jump to details