This package has been deprecated

Author message:

This library has been renamed to alpine-turbo-drive-adapter which supports both turbolinks and hotwired/turbo. Please remove this version and require alpine-turbo-drive-adapter

alpine-turbolinks-adapter

0.3.0 • Public • Published

Alpine Turbolinks Adapter

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

Install

From CDN

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

From NPM

Install the package

npm i alpine-turbolinks-adapter

Include it in your script along with Alpine JS.

import 'alpine-turbolinks-adapter'
import 'alpinejs'

Readme

Keywords

Package Sidebar

Install

npm i alpine-turbolinks-adapter

Weekly Downloads

11

Version

0.3.0

License

MIT

Unpacked Size

46.2 kB

Total Files

40

Last publish

Collaborators

  • simotod