Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Item List and Item Component
<p>
<strong>id:</strong> {{item.id}}<br>
<strong>title:</strong> {{item.title}}<br>
<strong>points:</strong> {{item.points}}<br>
<strong>time:</strong> {{item.time}}<br>
<strong>time ago:</strong> {{item.timeAgo}}<br>
<strong>comments count</strong> {{story.commentsCount}}<br>
<strong>url</strong> <a href="{{item.url}}">{{item.url}}</a><br>
<strong>domain</strong> <a href="http://{{item.domain}}">{{item.domain}}</a><br>
</p>
{{#each items as |item|}}
{{item-component item=item}}
<hr>
{{/each}}
{{item-list-component items=model}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment