Skip to content

Commit

Permalink
update confusing usage example in readme
Browse files Browse the repository at this point in the history
Example assumed that component yields a hash before but a component after
changing syntax. Since angle bracket invocation does not affect yielded
value it should be the same before and after.

[ci skip]
  • Loading branch information
jelhan committed Aug 30, 2018
1 parent a108bef commit 5916976
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ but here are a few examples of "before"/"after" to whet your appetite:
```hbs
<SiteHeader @user={{this.user}} class={{if this.user.isAdmin "admin"}} />
<SuperSelect @selected={{this.user.country}} as |Option|>
<SuperSelect @selected={{this.user.country}} as |s|>
{{#each this.availableCountries as |country|}}
<Option @value={{country}}>{{country.name}}</Option>
<s.option @value={{country}}>{{country.name}}</s.option>
{{/each}}
</SuperSelect>
```
Expand Down

0 comments on commit 5916976

Please sign in to comment.