How to react to custom events? #4338
-
I'm using Bootstrap modals (LiveDemo). They fire custom events like <div x-data
@hidden.bs.modal="console.log('Modal is closed')"
id="exampleModal"
class="modal fade" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
....
</div> I know that I can just add a script block es per the example, but I'd rather try to do it Alpine-style. Can you help? |
Beta Was this translation helpful? Give feedback.
Answered by
ekwoka
Aug 13, 2024
Replies: 1 comment
Answer selected by
danielniccoli
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://alpinejs.dev/directives/on#dot