Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
`@` as property lookup

Overview

Which of the following code samples would you rather someone with no ember experience see first? Keep in mind this could happen in the Ember guides, on stack overflow, or in a codebase.

<div class="blog-post">
<header>
<Avatar class="blog-post__avatar" @user={{@user}} />
<title>{{@title}}</title>
</header>
<p>
{{@body}}
</p>
</div>
<div class="blog-post">
<header>
<Avatar class="blog-post__avatar" @user={{this.args.user}} />
<title>{{this.args.title}}</title>
</header>
<p>
{{this.args.body}}
</p>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.