Skip to content

Commit

Permalink
Fix heading to use same casing as attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
craigbeck committed Jul 1, 2024
1 parent ef6c151 commit 2af8d70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/views/template-syntax/view-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ this.modal.close();
```


### `asArray` attribute
### `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.

Expand All @@ -203,7 +203,7 @@ Similar to the `as` attribute, a property with the name of the attribute value i
this.itemEditor[index]; // references the Component or DOM element for item at `index`
```

### `asObject` attribute
### `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.

Expand Down

0 comments on commit 2af8d70

Please sign in to comment.