Skip to content

Commit 915bf3f

Browse files
committed
fix array helper code block
1 parent 52bc977 commit 915bf3f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

guides/v3.6.0/templates/built-in-helpers.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,20 @@ Now, as long as your template is wrapped in the `let` helper you can access the
6868

6969
### Array helper
7070

71-
Using the [`{{array}}`](https://www.emberjs.com/api/ember/release/classes/Ember.Templates.helpers/methods/array?anchor=array) helper,
71+
Using the [`{{array}}`](https://www.emberjs.com/api/ember/release/classes/Ember.Templates.helpers/methods/array?anchor=array) helper,
7272
you can pass arrays directly from the template as an argument to your components.
7373

74-
```handlebars
74+
```handlebars
7575
{{my-component people=(array
7676
'Tom Dade'
7777
'Yehuda Katz'
7878
myOtherPerson)
7979
}}
8080
```
8181

82-
In the component's template, you can then use the `people` argument as an array:
82+
In the component's template, you can then use the `people` argument as an array:
8383

84-
```handlebars {data-filename=app/templates/components/my-component.hbs}
84+
```handlebars {data-filename=app/templates/components/my-component.hbs}
8585
<ul>
8686
{{#each people as |person|}}
8787
<li>{{person}}</li>

0 commit comments

Comments
 (0)