I would have thought that the LoadingRoute
would display its template in the {{outlet}}
of the main AppView, but it doesn\'t seem like it does. Wha
If you increase the timeout you will be able to notice that loading
template is attached at the end of document. It is probably designed to be used with overlays of fixed positioned elements.
You can add another outlet
(called loading
in example below) and force rendering of loading
template into it with Route renderTemplate
hook:
App.LoadingRoute = Ember.Route.extend({
renderTemplate: function() {
this.render("loading", { outlet: 'loading', into: 'application' });
}
});
Check out this example: http://jsbin.com/ipagut/5#/#two