I need some "conceptual" advice for ember.js.
I think I understand how things work for straight forward cases when the URL changes (manually or with transitionTo
). The route is responsible for loading the corresponding model and render a template into the parent's outlet.
What I don't understand is: there are some occasions where you want to change the state of the application but you do not want to (or can't) change the URL.
Let's say I have a template with two outlets:
<div id='dashboard'>
<div id='top'>{{outlet top}}</div>
<div id='bottom'>{{outlet bottom}}</div>
</div>
top
and bottom
part of the dashboard are independent of each other. Initially the application probably transitions to a /dashboard
route which renders the initial state of top
and bottom
into the outlets. But what happens then? If I want to change the content of the top
outlet, where do I render and insert that content (since there is no route involved)? Can I render in a controller? Do I have to set up a custom view container and how and where would that be rendered?
Any hint would be appreciated.