-
Hello |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
ok i can use template literals
but this doesn't look like good code |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
This is just javascript.
evaluate evaluates it as javascript
if you did
that would be a syntax error.
If you want too values like that, use an array/tuple
then you can just get it like
or whatever.