-
|
I just found VanJS today and I'm loving it so far! I really like how light and simple and powerful it is! However, I can't get this to work. The onclick doesn't seem to set currentContent. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
Do I somehow need vanX.list? |
Beta Was this translation helpful? Give feedback.
-
|
To make it work, you can't re-assignment the variable currentContent.Title = ... |
Beta Was this translation helpful? Give feedback.
-
|
Inside of the onclick I can set the individual keys. Is there a way I could call out to a function from the onclick that would do this for me? Like |
Beta Was this translation helpful? Give feedback.
To make it work, you can't re-assignment the variable
currentContent. Instead, you can set the sub-fields ofcurrentContent, something like: