Skip to content

Commit e66203e

Browse files
Wordsmith suggestion for a-array
Co-authored-by: Eric Hwang <[email protected]>
1 parent 2af8d70 commit e66203e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/views/template-syntax/view-attributes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ this.modal.close();
191191

192192
### `as-array` attribute
193193

194-
Similar to the `as` attribute, a property with the name of the attribute value is made available on the component but in this case is an `array`. Used by views in a `each` block to provide a reference in the controller to the individual item.
194+
Similar to the `as` attribute, a property with the provided name is made available on the component, but in this case the value is an array of multiple references. This is useful in an `each` block, to provide a reference in the controller to every individual item.
195195

196196
```jinja
197197
{{each items as #item, #index}}

0 commit comments

Comments
 (0)