我正在尝试使用Ember.TextArea类但继续运行以下错误...
Error: assertion failed: Unable to find view at path 'Ember.TextArea'
这是我的车把模板......
<script type="text/x-handlebars" data-template-name="dashboard">
<div>
{{view Ember.TexArea valueBinding="content.description" rows="1"}}
</div>
</script>
这是我的模特......
App.Dashboard = DS.Model.extend({
name: DS.attr('string'),
description: DS.attr('string'),
thumbnailUrl: DS.attr('string'),
charts: DS.hasMany('App.Chart')
});
这是我的观点......
App.DashboardView = Ember.View.extend({
templateName: 'dashboard',
currentUserBinding: 'App.currentUser',
didInsertElement: function() {
console.log('dashboard didInsertElement');
$("#right-content").sortable({
handle: '.js-sortable-handle'
});
}
});