alpine-alpine
v0.1.0
Published
Adds `$Alpine` magic - a reference to the `Alpine` object that was used for registering the magics, directives, and components.
Downloads
2
Readme
Alpine Alpine plugin
Adds $Alpine
magic - a reference to the Alpine
object that was used
for registering the magics, directives, and components.
<div x-data x-init="console.log($Alpine)">
</div>
Installation
Via CDN
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js"></script>
Via NPM
npm install alpine-alpine
Then initialize it from your bundle:
import Alpine from 'alpinejs'
import AlpinePlugin from 'alpine-alpine'
Alpine.plugin(AlpinePlugin)
...