@angular/core

effect

function

Registers an "effect" that will be scheduled & executed whenever the signals that it reads changes.

  
    function effect(  effectFn: (onCleanup: EffectCleanupRegisterFn) => void,  options?: CreateEffectOptions | undefined): EffectRef;
  
  
Jump to details