//我的表单视图
App.Form = Em.View.extend({
templateName:'app/templates/Login/login'
});
// Index.html
<script type="text/x-handlebars">
Hello <b>{{App.Value}}</b>
<div id="frm">
{{#view App.Form}}
{{/view}}
</div>
</script>
// login.handlebars
<b>Login Page: </b>
几个问题。
答案 0 :(得分:0)
App.Form = Em.View.extend({
templateName:'loginTemplate'
});
<script type="text/x-handlebars" data-template-name="loginTemplate">
<b>Login Page: </b>
</script>
这应该是我猜...为了重定向到页面你可以试试Ember.Router