Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Pass actions to components
{{item-list-component
items=model
markAsRead=(action "markAsRead")
}}
{{#each items as |item|}}
{{item-component
item=item
markAsRead=(action markAsRead item)
}}
<hr>
{{/each}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment