How can I send updates from an x-data to an external JS script? #2236
Answered
by
SimoTod
noam-elbaz
asked this question in
1. Help
-
Hi. I'd like to observe changes to: x-data="count: 0" (or something like that) in an external Vanilla JS script ? (I am pretty good with importing data and functions from outside Alpine internally, but not the other direction) Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
SimoTod
Oct 19, 2021
Replies: 1 comment 5 replies
-
An Alpine store is usually a good option but it really depends on what you want to do. |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
noam-elbaz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
An Alpine store is usually a good option but it really depends on what you want to do.
https://codepen.io/SimoTod/pen/RwZRojG