2

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'
    });
  }
});
4

0 に答える 0