Notes about Actions
-
you can call any function from the template, but it won't have 'this' context
onclick={{myFunction}}
-
If you call any function with the action helper, it will now have the context
onclick={{action myFunction}}
-
you should collect actions together in the actions hash, use by passing action name in quotes.
onclick={{action 'thing'}}
-
You can pass parameters as space separated values
onclick={{action 'actionName' 'param1' 'param2'}}