Skip to content

Access x-data from outside Alpine #4425

Answered by ekwoka
florian-sun asked this question in 1. Help
Discussion options

You must be logged in to vote

Then you can do :hx-vals="JSON.stringify($data)"

It was doing exactly that that led me to need to make this PR to htmx bigskysoftware/htmx#2799

Replies: 3 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
@ekwoka
Comment options

Answer selected by florian-sun
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants