javascript - 无法将 {{> loginButtons}} 与 Meteor 和 Ionic 一起使用

标签 javascript meteor ionic-framework meteoric

我想让我的用户在我的 Meteor/Ionic 应用程序中登录/注册。我认为这会很容易,因为我使用简单的 {{> loginButtons}},但它在控制台中给了我一个错误 Uncaught Error: No such template: loginButtons 。我的代码是

<div class="bar bar-footer">
<button class="button button-clear">{{> loginButtons}}</button>
<div class="title">Start using!</div>
<button class="button button-clear">{{> loginButtons}}</button>

当然,我已经安装了所有必需的软件包(例如 meteoric:ionic 和通过社交网络进行身份验证的软件包)。 那么我怎样才能实现这个功能(我对所有这些东西都有点陌生)?任何帮助将不胜感激,谢谢。

最佳答案

在一些帮助下,我找出了问题所在。我忘记添加 accounts-ui 包。在此之后,一切工作都非常顺利。

关于javascript - 无法将 {{> loginButtons}} 与 Meteor 和 Ionic 一起使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31500975/

相关文章:

javascript - Array.function 和 Array.prototype.function 有什么区别?

javascript - 重新加载时 Python Flask 304 响应

meteor - 如何使用meteor和autoform从下拉列表中预先选择一个值?

ionic-framework - ionic slider ion-slide-box 宽度小于页面宽度

javascript - Jquery - 来自选择器组的 $(this) id

javascript - Meteor js,如何获得更新整个客户端文档的副作用

templates - 在 meteor 模板中迭代 For 循环

html - 如何使选项卡按钮宽度灵活 - ionic 2

android - 基于 generator-gulp-angular 在 Ionic 项目上配置 Live Reload

javascript - 在哪里可以找到 Protovis 辅助函数?