Skip to content
Discussion options

You must be logged in to vote

Not in that way, you can hack it without evaluate if you use Alpine.closestRoot(el), getting the data from there and injecting the method but... I'm curious about the use case. If you don't want to redefine the same function in multiple components, you can use a global function or an alpine store.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@thomas07vt
Comment options

@SimoTod
Comment options

SimoTod Sep 9, 2021
Collaborator

@thomas07vt
Comment options

@SimoTod
Comment options

SimoTod Sep 9, 2021
Collaborator

@thomas07vt
Comment options

Answer selected by thomas07vt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants