【问题标题】:ember js anchor tag not workingember js锚标签不起作用
【发布时间】:2017-07-11 09:50:57
【问题描述】:

我正在开发我的大学项目到ember js移动应用程序,我正在添加导航菜单,

html 5 示例

<a href="#">
 <span class="glyphicon glyphicon-hourglass" aria-hidden="true"></span>    
 <h3 class="nav-text">Add expenses</h3>
</a>

我的 ember js 编码部分

{{#link-to "Addexpenses"}}<span class="glyphicon glyphicon-list-alt" aria-hidden="true">   </span> <h3 class="nav-text">Add expenses</h3>{{/link-to}}`

为什么打不开Addexpenses.hbs页面?我该如何解决?

【问题讨论】:

  • 您遇到的错误是什么?你能检查一下控制台并分享你检索到的信息吗?
  • 先生现在它工作正常,我在工作正常后重新创建Addexpenses,我可以删除我的问题吗?也许有人会投反对票

标签: html ember.js


【解决方案1】:

您需要通过以下方式将Addexpenses 路由添加到router.js:

this.route('Addexpenses');

【讨论】:

  • 先生,我已经添加了这个,我正在使用为ember g route Addexpenses添加这个
猜你喜欢
  • 1970-01-01
  • 2016-05-14
  • 2011-08-03
  • 2010-11-10
  • 2016-03-15
  • 1970-01-01
  • 2021-09-29
相关资源
最近更新 更多