【发布时间】:2013-04-22 13:55:50
【问题描述】:
我的 html 中有这个:
<script type="text/x-handlebars" template-name="index">
<h1>Login Page</h1>
{{#linkTo "index"}}<img class="logo">{{/linkTo}}
<button {{action doLogin}}>Login</button>
</script>
我的 router.js 中有这个:
myTalk.Router.map(function() {
this.route('index', {path:"index"});
});
但我有这个错误:
Uncaught Error: No route matched the URL '..../index.html'
提前感谢,抱歉我的英语不好
【问题讨论】:
标签: ember.js handlebars.js javascript-framework ember-data