Dynamic loading Models for Nested Templates (Newbie Q)


#1

I have a Menu template that is being rendered in the Application template.

The Menu has it’s own Model, and also unique functionality.

That is why I wanted the Menu separate from the Application, so that it could load it’s own Model after the application had rendered.

I really like the way Routers glue together the Template, Model and Controller. Especially with the beforeModel, model and afterModel functions.

However, the Menu cannot have a route? Or can it?

How would you approach this? Simply load the model in the MenuController?


#2

Perhaps this article will help:

http://ember.zone/routeless-ember-js-controllers/