This is a question I have about all MVC frameworks that I could not yet find a satisfactory answer. For example the main ember tutorial here: http://emberjs.com/guides/
There is a main page, whose child route has some posts, whose template is displayed in the outlet of parent.
I get that:
- On the application route, you display parent template with its controller.
- On the posts route, you display parent, and child template using its controller
This is what I dont get: Do we have to have one parent-child relationship, and a single route to display it? How about multiple children objects on the same page? How about their children?
Whatif I have posts on the main page, a profile object, a forum groups object, an instant messaging object, etc. all on one page? With the given tutorials all I can do is either browse to a profile route, a posts route, or forum groups route, but can’t have all on the page, because they are not in a child/parent relationship and on the same route.
A tutorial or clarity on this would be much appreciated.