[英]View Handlers in ember.js
//我的表單視圖
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>
幾個問題。
App.Form = Em.View.extend({
templateName:'loginTemplate'
});
<script type="text/x-handlebars" data-template-name="loginTemplate">
<b>Login Page: </b>
</script>
我應該猜這...為了重定向到頁面,您可以嘗試Ember.Router
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.