A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/SimoTod/alpine-turbolinks-adapter below:

SimoTod/alpine-turbo-drive-adapter: Bridge library to enable full support for Alpine components in pages using Turbolinks

Alpine Turbo Drive Adapter

Alpine-turbo-drive-adapter allows you to add support for Alpine.js V3 to your Turbolinks/Turbo powered apps. It handles events to properly clean up the DOM from Alpine generated code when navigating between pages.

If you look for the Alpine v2 version, look at the 1.x branch.

Just include <script src="https://cdn.jsdelivr.net/npm/alpine-turbo-drive-adapter@2.0.x/dist/alpine-turbo-drive-adapter.min.js" defer></script> before your Alpine script in your page

Install the package

npm i alpine-turbo-drive-adapter

Include it in your script along with Alpine JS (make sure Alpine is available on the window object).

import 'alpine-turbo-drive-adapter'
import Alpine from 'alpinejs'
window.Alpine = Alpine

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4