rjoxford
rjoxford

Reputation: 361

Send multiple parameters from ember component

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

Answers (1)

Tom Netzband
Tom Netzband

Reputation: 1110

Same way you sent the first one:

{{confirm-button title="Delete" action="deleteTodo" param=todo param2=myOtherParam}}

Upvotes: 3

Related Questions