Skip to content

Instantly share code, notes, and snippets.

@krisselden
Forked from raycohen/0-Overview.md
Last active March 29, 2019 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krisselden/ee7aa5e4dc9b8a2c6795eac0cd310234 to your computer and use it in GitHub Desktop.
Save krisselden/ee7aa5e4dc9b8a2c6795eac0cd310234 to your computer and use it in GitHub Desktop.
`@` as means argument to the template not property
<div class="blog-post">
<header>
<Avatar class="blog-post__avatar" @user={{@user}} />
<title>{{@title}}</title>
</header>
<p>
{{@body}}
</p>
</div>
function (@user, @title, @body) {
<div class="blog-post">
<header>
<Avatar class="blog-post__avatar" @user={{@user}} />
<title>{{@title}}</title>
</header>
<p>
{{@body}}
</p>
</div>
}
(user, title, body) => (<div class="blog-post">
<header>
<Avatar class="blog-post__avatar" @user={{user}} />
<title>{{title}}</title>
</header>
<p>
{{body}}
</p>
</div>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment