menu_book Course Curriculum (Alpine.js) expand_more
Core State
Binding
Events
Visibility
Lists & Templates
Magic Properties
Plugins & Extensibility
$refs scope
Learn $refs scope in Alpine.js with a dedicated explanation, topic-specific example, edge guidance, and mastery check.
12 min read
•
Intermediate
Advertisement
alpinejs-055.html
html
<div x-data><input x-ref="local"><span x-data><button @click="console.log($refs.local?.value)">Inspect scoped ref</button></span></div>
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content