So currently, while Controllers are still there, the actions can be defined both on Route
and Controller
. Keeping in mind that Controllers are going to be deprecated, I’m trying to stick with Route actions, and it works fine, when I assign them to buttons like following: click="'someAction' someParam"
(btw, I use Emblem so that might be the core of my problem), but what I do if want to create custom component?
I found sort of solution here: Triggering Changes with Actions - Components - Ember Guides
But action
helper doesn’t take action from Route instead it expects action defined on Controller. Is there some inconsistency? How do I use route actions in a fashion I’d do with buttons?