i have 2 routes trains, teams created with pods.
trains
--route.js
--template.hbs
teams
--route.js
--template.hbs
Router
Router.map(function() {
this.route('trains', function(){
this.route('teams', {path: '/:train_name'});
});
});
When i navigate to /trains/some-train-name/teams. it did not invoke teams route. it is looking for a template 'trains/teams'. is it expecting my teams folder to be inside trains folder. how to nest these 2 separate routes
Aucun commentaire:
Enregistrer un commentaire