未捕获的TypeError:无法调用未定义的方法'connectOutlet'

sen*_*l21 6 ember.js

我正在为我的加载路由处理程序获取一个未定义的父视图 - 但仅当特定页面导航到我的应用程序中的第一个时.

http://www.sentinel21.com/#/posts

如果您首先访问about页面或root,则加载处理程序似乎正确加载.在这种情况下,我不确定我正在做什么导致加载路径不正确地呈现.

这是装货路线.

App.LoadingRoute = Ember.Route.extend({
    renderTemplate: function(){
        this.render('loading', {
            outlet: "loading",
            into: "application"
        });
    }
});
Run Code Online (Sandbox Code Playgroud)

我的应用程序模板有此代码.

<div class="content">
    <div class="column row"></div>
  {{outlet "loading"}}
  {{outlet}}
</div>
Run Code Online (Sandbox Code Playgroud)

所有代码都可以在github上找到,这可能是查看模板的最简单的地方,这些模板是预编译的.

non*_*ont 1

我遇到了同样的问题,这是因为我的应用程序模板被命名为“app.handlebars”,但应该被称为“application.handlebars”。一旦我改变了它,就找到了插座,一切都按预期工作。