【发布时间】:2016-05-26 13:45:51
【问题描述】:
在使用 FlowRouter 时,我似乎无法弄清楚如何创建有效的 Autoform“QuickForm”。我不断收到此错误:
Exception in template helper: Error: Footer is not in the window scope
这是我的快速表单。在这种情况下,集合等于“页脚”的字符串值:
{{> quickForm id="formView" type="insert" collection=form.collection }}
也许一个 Quickform、simpleSchema 和 FlowRouter 的例子足以回答这个问题。
【问题讨论】:
-
你有一个名为
Footer的模板吗? -
不,我的收藏被称为页脚,但即:
Footer = new Mongo.Collection('footer');
标签: javascript meteor meteor-autoform simple-schema flow-router