我正在将我的大学项目开发到ember js
移动应用程序,我正在添加导航菜单,
html 5示例
<a href="#">
<span class="glyphicon glyphicon-hourglass" aria-hidden="true"></span>
<h3 class="nav-text">Add expenses</h3>
</a>
我的余烬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
页面?我该如何解决?
答案 0 :(得分:0)
您需要通过以下方式将Addexpenses
路由添加到router.js:
this.route('Addexpenses');