alpine-turbo-drive-adapter
Version:
Bridge library to enable full support for Alpine components in pages using Turbolinks/Turbo Drive
17 lines (14 loc) • 519 B
HTML
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/@hotwired/turbo/dist/turbo.es2017-umd.min.js"></script>
<script src="/dist/alpine-turbo-drive-adapter.js" defer></script>
<script src="//unpkg.com/alpinejs" defer></script>
</head>
<body>
<a href="/tests/res/turbo/cloakCustom/index.html">go to index</a>
<div x-data="{ open: false }">
<button id='toggler' @click="open = true">Opener</button>
<span x-show="open" x-cloak="mobile">Hidden</span>
</div>
</body>
</html>