Skip to content

Instantly share code, notes, and snippets.

@serenaf
Created November 7, 2017 10:25
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 serenaf/0426a649d5b08c100b4748950cbab046 to your computer and use it in GitHub Desktop.
Save serenaf/0426a649d5b08c100b4748950cbab046 to your computer and use it in GitHub Desktop.
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