Sam Selikoff
Sam Selikoff

Reputation: 12704

Using Ember.ListView with Ember-CLI

What's the most correct way to use Ember list view with ember-cli?

The docs still show the {{#collection}} helper, and even though that works, that helper has been deprecated.

I tried using {{#view 'list-view'}}, and it didn't throw any errors, but it also didn't work. I believe it didn't render the itemView.

Upvotes: 4

Views: 497

Answers (1)

oldfartdeveloper
oldfartdeveloper

Reputation: 354

I didn't tackle whether it should use collection or view, but I did find a way to load list-view into an ember-cli project (when ember-cli is at version 0.0.40 or less).

I submitted the solution as an Ember-CLI pull request. Since it's a version-specific solution, I won't be surprised if they don't merge it, but it might be a "magnet" for even better solutions.

Look in my proposed README under Installation.

Upvotes: 0

Related Questions