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
chrisgame committed May 5, 2021

Verified

This commit was signed with the committer’s verified signature.
targos Michaël Zasso
1 parent fe26f80 commit e19e975
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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}}
```
@@ -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}}

0 comments on commit e19e975

Please sign in to comment.