@Ivan_Youroff wrote:
So currently, while Controllers are still there, the actions can be defined both on
Route
andController
. 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: https://guides.emberjs.com/v2.2.0/components/triggering-changes-with-actions/#toc_passing-the-action-to-the-component
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?
Posts: 1
Participants: 1