Skip to content

Commit

Permalink
Wordsmith suggestions for as-object
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 e66203e commit 8d0c9f8
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 @@ -205,7 +205,7 @@ this.itemEditor[index]; // references the Component or DOM element for item at `

### `as-object` attribute

Similar to the `as-array` attribute, a property with the name of the attribute value is made available on the component. This attribute takes a second argument that is the proptery key to use as the property on the object.
Similar to the `as-array` attribute, a property with the provided name is made available on the component, but with the value being a map-like object. The second argument to `as-object` specifies the key for each entry.

```jinja
<ul>
Expand Down

0 comments on commit 8d0c9f8

Please sign in to comment.