alpinejs / alpine

A rugged, minimal framework for composing JavaScript behavior in your markup.
https://alpinejs.dev
MIT License
28.43k stars 1.23k forks source link

:memo: Updates docs with notes for x-data usage #4307

Closed ekwoka closed 1 month ago

ekwoka commented 4 months ago

This comes up quite often, that someone is stumped by a directive not working, despite copying it from the docs because it doesn't have an x-data parent.

So this adds an extra note in the start here, and a note under the first example that doesn't use x-data for each directive (as needed).

It's a sad day.

calebporzio commented 1 month ago

This is great, sorry for the lag on it. Thanks @ekwoka