Skip to content
Documentation/MovePresenceForDirective

Search documentation

Type to search the documentation.

Reference

MovePresenceForDirective

Keyed-list counterpart to movePresence.

Overview

Keyed-list counterpart to *movePresence.

@for destroys an embedded view the moment its item leaves the source array, which is why exit animations are impossible inside it. This directive renders the list itself, so it can keep a removed item's view in the DOM until that item's own leave animations resolve.

Stable API — covered by semantic-versioning guarantees.

  • Kind: Directive
  • Stability: stable

Selector

[movePresenceFor]

Inputs

Input Type Default Required Description
movePresenceForOf readonly T[] | null | undefined Yes
movePresenceForTrackBy MovePresenceForTrackBy<T> defaultTrackBy
movePresenceForMode MovePresenceForMode 'sync'