iron:router - "Couldn't find a template named 'loading'..."

iron:router - "Couldn't find a template named 'loading'..."

我收到这个奇怪的错误:

"找不到名为 'loading' 或 'loading' 的模板。您确定已定义它吗?"

就像Iron router: Error: Couldn't find a template named "/" or "". Are you sure you defined it?

不幸的是,那里的答案不是很有帮助(可能是因为它太旧了,我已经在使用 1.0.7 版了)。

铁配置如下javascript:

Router.configure({
    layoutTemplate: 'layout',
    loadingTemplate: 'loading',
    waitOn: function() { return Meteor.subscribe('posts'); }
});

Router.route('/', {name: 'postsList'});

有什么提示吗? ^_^

多么棒的 Whosebug 开始。我正在阅读 "Discover Meteor" 这本书,但不知何故我跳过了添加实际微调器的下一部分。

添加以下代码解决了我的问题:

<template name="loading">
    {{>spinner}}
</template>

我想我需要提高我的快速阅读能力,很抱歉。