EvolvedWeb / evowc

Evolved Web Components
MIT License
8 stars 0 forks source link

Need an index variable in the `$for` sections #42

Closed intervalia closed 1 year ago

intervalia commented 1 year ago

Describe the bug You can currently use the item from an array of items within the DOM of your template. But there is no way to get the index.

Expected behavior Provide a way to use the index within the template when inside a $for area.

intervalia commented 1 year ago

Fixed in version 0.6.0. The index variable is set to _index