Always use closure actions (according to DDAU convention). Exception: only when you need bubbling.
export default Controller.extend({
actions: {
detonate() {
alert('Kabooom');
}
}
});
export default Component.extend({
actions: {
pushLever() {
get(this, 'boom')();
}
}
})
export default Component.extend({
actions: {
pushLever() {
this.sendAction('detonate');
}
}
})