Skip to content

Commit

Permalink
Wordsmith suggestion for a-array
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Hwang <[email protected]>
  • Loading branch information
craigbeck and ericyhwang authored Jul 3, 2024
1 parent 2af8d70 commit e66203e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/views/template-syntax/view-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ this.modal.close();

### `as-array` attribute

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.
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.

```jinja
{{each items as #item, #index}}
Expand Down

0 comments on commit e66203e

Please sign in to comment.