Skip to content
Discussion options

You must be logged in to vote

This is just javascript.

evaluate evaluates it as javascript

if you did

const data = { option.test1, option.test2 }

that would be a syntax error.

If you want too values like that, use an array/tuple

<div x-directive="[option.test1,option.test2]">

then you can just get it like

evaluate(([test1, test2]) => {})

or whatever.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@kcap
Comment options

Answer selected by kcap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants