I have a simple(i think) question.
If i change the event name to camelCase, so to cartChanged, instead of cart-changed, it stops working.
Is this normal behavior?
M
Modestas
✓ Link copied!
Hi, the events on alpinejs end should be a kebab-caes and contain only lowercase letters. In general, I personally use kebab-case for all front-end facing events :)
Hi!
I have a simple(i think) question. If i change the event name to camelCase, so to cartChanged, instead of cart-changed, it stops working. Is this normal behavior?
Hi, the events on alpinejs end should be a kebab-caes and contain only lowercase letters. In general, I personally use kebab-case for all front-end facing events :)
Thank you, Modestas!