I've got two routes: a main route, called parent
, and a child route of it called parent.child
. When something happens (let's call it X) in parent.child
, I want to transition to parent
, but since technically we're already there, Ember does nothing.
// 'parent.child' controller
this.transitionToRoute('parent');
So I want to know if there's a way to force this "transition". The reason is that there's code in parent
that needs to re-run after X occurs.
Aucun commentaire:
Enregistrer un commentaire