Skip to content

Commit

Permalink
[DOC release] fix passing params to named blocks examples
Browse files Browse the repository at this point in the history
(cherry picked from commit e19e975)
  • Loading branch information
chrisgame authored and chancancode committed May 27, 2021
1 parent 6861e10 commit 97d9782
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
You can also pass parameters to named blocks:
```app/templates/components/person-profile.hbs
<h1>{{yield to="title" @person.name}}</h1>
<h1>{{yield @person.name to="title"}}</h1>
{{yield @person.signature}}
```
Expand All @@ -184,7 +184,7 @@
```app/templates/components/person-profile.hbs
<h1>
{{#if (has-block "title")}}
{{yield to="title" @person.name}}
{{yield @person.name to="title"}}
{{else}}
{{@person.name}}
{{/if}}
Expand Down

0 comments on commit 97d9782

Please sign in to comment.