menu_book Course Curriculum (Alpine.js) expand_more
Core State
Binding
Events
Visibility
Lists & Templates
Magic Properties
Plugins & Extensibility
Nested x-data
Learn Nested x-data in Alpine.js with a dedicated explanation, topic-specific example, edge guidance, and mastery check.
12 min read
•
Beginner
Advertisement
alpinejs-003.html
html
<div x-data="{theme:'light'}"><section x-data="{open:false}"><button @click="open=!open">Toggle</button></section></div>
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content