Gavant / glint-template-types

MIT License
19 stars 20 forks source link

animated-each yields the item and the item's index #38

Closed zzzzBov closed 2 years ago

zzzzBov commented 3 years ago

animated-each yields both the item and the item's index

source:

{{#each this.renderedChildren key="id" as |child|}}
  <-EaListElement @child={{child}} @elementToChild={{this._elementToChild}}>
    {{~yield child.value child.index~}}
  </-EaListElement>
{{else}}
  {{~yield to="inverse"~}}
{{/each}}