Reputation: 361
I want to send two parameters to an action in an Ember component. The documentation only suggests how to send one parameter eg as
{{#each todos as |todo|}}
<p>{{todo.title}} {{confirm-button title="Delete" action="deleteTodo" param=todo}}</p>
{{/each}}
How do I send multiple params? Thanks
Upvotes: 2
Views: 738
Reputation: 1110
Same way you sent the first one:
{{confirm-button title="Delete" action="deleteTodo" param=todo param2=myOtherParam}}
Upvotes: 3