Closed tim-evans closed 8 years ago
interesting
Is this what is needed before this will work? Need to pass a property from my controller down to the component. Or am I missing something super basic about contexts here?
{{#ember-list items=model height=500 rowHeight=40}}
{{track-item track=content fish=controller.something}}
{{/ember-list}}
@oskarrough The template you provided is a good interim step for refactoring.
Your template would change to:
{{#ember-list items=model height=500 rowHeight=40 as |track index|}}
{{track-item track=track fish=controller.something}}
{{/ember-list}}
@tim-evans exactly. But it doesn't work yet. Correct?
Correct. This isn't implemented yet.
@tim-evans this will be how it has to work for ember 2, I'm planning on moving it away from item views.
@krisselden super!
Hi any update here?
There is some initial spikes how of how list-view will work in glimmer. https://github.com/krisselden/list-view/tree/2.0.0.
You can see how the new syntax looks here: https://github.com/krisselden/list-view/blob/2.0.0/tests/dummy/app/templates/simple.hbs#L18-L22
I would like to use block params for list-view just like the each helper:
Feedback on restrictions this causes on users would be great :)