[FEATURE REQUEST] - Add array param to x-for #768
go4cas
started this conversation in
4. General
Replies: 1 comment 2 replies
-
@go4cas This is actually already possible, see the CodePen here: https://codepen.io/ryangjchandler/pen/KKzBKry When you click the buttons and look in the console, you'll actually see a |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a use case whereby I need to evaluate the current item, in a
x-for
loop, with the previous item.The workaround at the moment is something like this:
I thought, seeing that
x-for
usesforEach
, which supports the optionalarray
parameter (providing access to the array object), it would be a good feature to have this available. So, turning the above example into:Beta Was this translation helpful? Give feedback.
All reactions