alpine.reactive how to use globally #3902
Replies: 4 comments 1 reply
-
<button @click="data.count = 2">Fire I try to understand how global reactive and effect works. Thanks |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Ok. |
Beta Was this translation helpful? Give feedback.
-
If you must, you'd need to do But you might also just want to use a store since stores are available globally.. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I want to do some experiment, I am very new to alpine, but I like it.
I want to do global reactive and effect experiment, but I have no idea why it does not work.
I use a button in some small x-data scope to click trigger event to make data.count = 2, and console warned me data.count is not defined.
Thanks
Eric Xin
Beta Was this translation helpful? Give feedback.
All reactions