简体   繁体   English

灰烬js锚标记不起作用

[英]ember js anchor tag not working

I'm developing my university project to ember js mobile application , I'm adding navigation menu, 我正在开发大学项目来ember js移动应用程序,正在添加导航菜单,

html 5 example html 5示例

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

my ember js coding part 我的余烬js编码部分

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

Why does it not open Addexpenses.hbs page? 为什么不打开Addexpenses.hbs页面? how can I fix it? 我该如何解决?

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

this.route('Addexpenses');

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM