Skip to content

Commit

Permalink
Test alpipejs
Browse files Browse the repository at this point in the history
  • Loading branch information
ledongthuc committed Sep 17, 2022
1 parent 655670f commit 1e92968
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions alpinejs/001_start/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<html>
<head>
<script defer src="https://unpkg.com/[email protected]/dist/cdn.min.js"></script>
</head>
<body>
<h1 x-data="{ message: 'I ❤️ Alpine' }" x-text="message"></h1>
<div x-data="{ open: false }">
<div x-data="{ label: 'Content:' }">
<span x-text="label" @click="open = ! open"></span>
<span x-show="open">It will be hidden</span>
</div>
</div>
</body>
</html>

0 comments on commit 1e92968

Please sign in to comment.