Skip to content
Discussion options

You must be logged in to vote

ah ok, this is related to the JSON parser

JSON.parse(["key1", "key2"]) // ok
JSON.parse(['key1', 'key2']) // SyntaxError
so, instead of data-gjs-prop="['key1', 'key2']" you should use data-gjs-prop='["key1", "key2"]'

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@ltenti-eventboost
Comment options

@artf
Comment options

artf May 26, 2021
Maintainer

@ltenti-eventboost
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ltenti-eventboost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants