Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Reactive input element in AlpineJS
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.3.5/dist/alpine.min.js"></script>
<div x-data="{msg:''}">
<input x-model="msg" />
<span x-text="msg"></span>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.