Skip to content

Commit

Permalink
feat: Pass code model to secret-box component within secret template
Browse files Browse the repository at this point in the history
  • Loading branch information
Esteban Lara committed Jun 2, 2019
1 parent 65bc071 commit e54da1b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion app/templates/components/secret-box.hbs
@@ -1 +1,13 @@
{{yield}}
<h1>
Secret Codes
</h1>

<p>
You have permission to view the secret codes. Lucky you!
</p>

<ul>
{{#each @model as |code|}}
<li><strong>{{code.description}}</strong></li>
{{/each}}
</ul>
2 changes: 1 addition & 1 deletion app/templates/secrets.hbs
@@ -1 +1 @@
{{outlet}}
<SecretBox @model={{this.model}}></SecretBox>

0 comments on commit e54da1b

Please sign in to comment.