$el
$el is a magic property that can be used to retrieve the current DOM node.
<button @click="$el.innerHTML = 'Hello World!'">Replace me with "Hello World!"</button>
Code highlighting provided by Torchlight
Alpine UI is on sale for Black Friday! 🎉 Get 50% off Alpine Components for Black Friday! Grab 'em here →
$el is a magic property that can be used to retrieve the current DOM node.
<button @click="$el.innerHTML = 'Hello World!'">Replace me with "Hello World!"</button>
Code highlighting provided by Torchlight