I have the following route setup using dynamic segments.
Router.map(function() {
this.route('crud', { path: '*:' }, function() {
this.route('index', { path: ':model-name' });
this.route('edit', { path: ':model-name/:id' }, function() {
this.route('index', { path: '/' });
this.route('relationship', { path: ':relationship'});
});
});
});
The problem is that when I go to crud.edit.index (http://localhost:4200/employee/edit/1) the content in /app/pods/crud/edit/index/template.hbs is never rendered although /app/pods/crud/edit/template.hbs is rendered fine. /app/pods/crud/edit/template.hbs contains an {{outlet}} so I think it must be something to do with my router setup.
Aucun commentaire:
Enregistrer un commentaire