Alpine JS
Posted in
4393
10:28 pm, February 10, 2022
Alpine JS Testing
some simple tests using alpine js
HTML
<h1 x-data="{ message: 'I ❤️ Alpine' }" x-text="message"></h1>
<div x-data="{ count: 0 }">
<button x-on:click="count++">Increment</button>
<span x-text="count"></span>
</div>
<div x-data="{ open: false }">
<button @click="open = true" x-transition>Expand</button>
<span x-show="open">
Content...
</span>
</div>
Scripts
<script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>
Content...
View Statistics
This Week
105
This Month
342
This Year
1246
Add Comment
Other Items in Alpine JS
Related Search Terms
Other Categories in Code
alpine js apps c css factorio font awesome images linux quick modals sqlite site bugs site updates slick slider sliders testing windows apps apache api apps asp bat bootstrap bootstrap templates charts cookies core css css filters css grid design elements docker domains emoji fancybox fonts foundation framework gimp git html icons ideas image formatting images javascript javascript functions jquery js linux mac misc modals mysql nginx node php php errors php function php functions php simple html dom pi400 python react regex sections simple_html_dom simplepie php site bugs site documentation slick slider sql sqlite ssh sublime svg svg css templates tools virtual box vscode vue webdev windows windows 11 windows commands wordpress