Skip to main content
ITEM is a reactive reference to $item — the current element in a ForEach iteration. It gives you access to the entire item object, which is useful when you need to pass it whole to an action or reference it explicitly.

When You Need It

Most of the time you don’t. Inside a ForEach, individual fields are available directly — {{ name }} works the same as {{ $item.name }}. But ITEM is valuable when: Passing the whole object to an action:
Disambiguating nested structures where a field name might collide with a let binding or outer state key.

Dot Paths

Attribute access chains as expected:

Import