I am trying to implement the following route structure in my Ember app;
this.route('mainStep', function() {
this.route('subDynamicStep', { path: '/:sub_dynamic_id' }, function(){
this.route('commonChildStep1');
this.route('commonChildStep2');
});
});
So I can have the following possibilities;
mainStep\subStep1\commonChildStep1
mainStep\subStep1\commonChildStep2
mainStep\subStep2\commonChildStep1
mainStep\subStep2\commonChildStep2
Now my question is, if I want to have the above kind of implementation, would I have to create separate physical folders even for the dynamic segments (i.e. subStep1, subStep2) under the parent 'mainStep' routes\controllers\templates
is there any better way, coz otherwise I can reuse commonChildStep1, commonChildStep2 for each of the "subDynamicStep"
Basically, I wanted to know if I can leverage the commonChildStep1,commonChildStep2 for each of the posible dynamic segments (for subDynamicStep)
Aucun commentaire:
Enregistrer un commentaire