错误:断言失败:无法在路径“Ember.TextArea”中找到视图

时间:2013-06-05 12:14:54

标签: ember.js

我正在尝试使用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'
    });
  }
});

0 个答案:

没有答案