Improve "on" directive documentation #4306
Angel-Ponce
started this conversation in
4. General
Replies: 2 comments 3 replies
-
It's not just x-on, it's the same for the other directives: https://alpinejs.dev/start-here If you just need a click handler without an alpine component you can just use the native https://www.w3schools.com/TAgs/att_onclick.asp |
Beta Was this translation helpful? Give feedback.
1 reply
-
Y'know, I'll just bite the bullet and PR a little note box on every directive page next to the first example. And update the started guides to be more clear about it as well. I don't really think it should be necessary, but this is just about self-preservation at this point 😆 😭 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently working with AlpineJS, and I tried to put
x-on:click
in some of my html elements, but, this not working as well, so, searching a little bit in google I found that the.x-on
directive not works ifx-data
it's not present.This "condiction" it's not present in the official documentation of
x-on
directive.Beta Was this translation helpful? Give feedback.
All reactions