W3cubDocs

/Angular

EffectRef

interface developer preview

A global reactive effect, which can be manually destroyed.

interface EffectRef {
  destroy(): void
}

Methods

Shut down the effect, removing it from any upcoming scheduled executions.

destroy(): void

Parameters

There are no parameters.

Returns

void

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