I have a Parent route named engineering. Every route extends a Base.js route which renders the default template as well as another custom one into the named outlet:
renderTemplate: function (controller) {
this.render();
this.render('page-title', {
outlet: 'pageTitle',
controller: controller,
});
},
There is a engineering.hbs parent template which contained two outlets. The Main and another {outlet 'pageTitle'}}.
This works perfecly fine for routes like /engineering/index and engineering/someothersite, but the pageTitle outlett just doesn't render at all for routes like engineering/college/courses/description.
Any Suggestions, or perhaps even a better way of passing data from a child route to the parent template?
Aucun commentaire:
Enregistrer un commentaire