Pass Alpine instance to alpine:* events #3407
septatrix
started this conversation in
3. Feature Ideas
Replies: 1 comment
-
|
If you're using modules, you should be using Alpine.plugin, not the event listeners. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
By passing the Alpine instance as part of the event details, the instance must no longer be globally accessible and the
windowaccess can be eliminated. This can be useful for ES modules for keeping everything encapsulated properly while still being able to use Alpine.data etc.Beta Was this translation helpful? Give feedback.
All reactions