Suppose you have this mapping:
App.Router.map(function() { this.route("foo") });
When going to route foo . This template will be inserted into the value specified in the into property of the render method. Example:
App.FooRoute = Ember.Route.extend({ renderTemplate: function() { this.render("foo", { into: "sometemplate" }) } });
The case is not fixed, the route foo will look for the parent route, in this case ApplicationRoute and insert the template foo , into the application template. This is the default behavior when you do not override the renderTemplate method.
But when none of these conditions occurs, this is the LoadingRoute behavior because it does not have a ApplicationRoute parent. Than ember inserts a template into a body tag, or, more specifically, into App.rootElement .
Marcio junior
source share