Created
May 23, 2020 14:56
-
-
Save ozcanzaferayan/60dfc86a97899087350aa10bfcae91de to your computer and use it in GitHub Desktop.
Reactive input element in AlpineJS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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