I just updated my app from the latest Ember 1.13 (without any deprecations) to Ember 2.4. Now I have the problem that some actions are not bubbling anymore. I have the following setting:
routes/foo.js
export default Ember.Route.extend({
actions:
doSomething: function() {
console.log("action triggered!");
}
});
templates/foo.hbs
{{render "foo.bar"}}
templates/foo/bar.hbs
<div {{action "doSomething"}}>Test</div>
controllers/foo/bar.js
export default Ember.Controller.extend({
});
With Ember 1.13, when I clicked Test
, the action doSomething
in routes/foo.js
was triggered. Now this does not happen anymore. If I add an action doSomething
to controllers/foo/bar.js
, this action is triggered, but nevertheless it does not bubble to the base root. I checked all the blog posts on new ember versions but I could find nothing that suggested the bubbling of actions was changed and how to fix it. Any help would be great!
Aucun commentaire:
Enregistrer un commentaire