Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Comment Component
<div class="comment">
<em>{{comment.user}} {{comment.timeAgo}}</em>
<p>{{{comment.content}}}</p>
{{#each comment.comments as |childComment|}}
{{comment-component comment=childComment}}
{{/each}}
</div>
<h2>{{model.title}}</h2>
{{#each model.comments as |comment|}}
{{comment-component comment=comment}}
{{/each}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment