If I just run ember new testlistview and then in templates/index.hbs:
{{#collection Ember.ListView contentBinding="controller" height=500 rowHeight=50 width=500}}
{{name}}
{{/collection}}
and in routes/index.js:
import Ember from 'ember';
export default Ember.Route.extend({
model: function() {
var items = [];
for (var i = 0; i < 10000; i++) {
items.push({name: "Item " + i});
}
return items;
}
});
I get an error:
Uncaught Error: Assertion Failed: Ember.ListView must be a subclass or an instance of Ember.View, not
DEBUG: -------------------------------
DEBUG: Ember : 1.8.1
DEBUG: Ember Data : 1.0.0-beta.12
DEBUG: Handlebars : 1.3.0
DEBUG: jQuery : 1.11.2
DEBUG: -------------------------------
Does anyone know how to make it work or can offer any alternatives?
Also, what about Ember 1.9.1 and Handlebars 2.0.0 ?