jeudi 23 juillet 2015

Ember transition to route on parent dynamic segments (slugs)

I have this current router.js set up.

this.resource('parent', {path:'parent/:id'},function() {
  this.route('child', {path:'child/:name'});
});

Pages that are valid are http://ift.tt/1TUGyzR and www.x.com/parent/5

Using this.transitionToRoute('parent.child','jimmy'); will get me to this page http://ift.tt/1TUGyzR.

Using this.transitionToRoute('parent','5'); will get me to this page www.x.com/parent/5.

Since this route is nested, the :id parameter has an effect on the child route...

How could I transition to http://ift.tt/1JhLQSN? This is an update in the parent's dynamic segment :id while maintaining child dynamic segments.




Aucun commentaire:

Enregistrer un commentaire