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
  • Loading branch information
chrisgame committed May 5, 2021
1 parent fe26f80 commit e19e975
Showing 1 changed file with 2 additions and 2 deletions.
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 e19e975

Please sign in to comment.