I have a peculiar case.
Say I am on http://ift.tt/1aP9wA1
I want to be able to change the product dynamic segment, but still be in the detail sub route. for example `http://ift.tt/1aP9zvN
And if I am in root.com/product/1 I want the SAME transition code to go to `root.com/product/2
Normally, you'd put something like transitionToRoute('product', this.get('id')), but that takes me only to the product route. I need the extra flexibility of preserving any sub routes the visitor may currently be in.
Perhaps there is some sort of "currentRoute" property I can hook into like transitionToRoute('controller.currentRoute', this.get('id')) while passing in new ids or objects for dynamic segments?
Aucun commentaire:
Enregistrer un commentaire