Join the AI Workshop and learn to build real-world apps with AI. A hands-on, practical program to level up your skills.
Installing Alpine can be as simple as adding a script tag to your HTML page:
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
Or, you can add it as a JavaScript module into your project:
npm install alpinejs
And you can initialize it with
import Alpine from 'alpinejs'
window.Alpine = Alpine
Alpine.start()
You can choose the way you prefer.
Adding the script tag is the simplest as you automatically have the Alpine object available on the global window object, and already initialized (you don’t have to manually call Alpine.start())
Lessons in this unit:
| 0: | Introduction |
| 1: | ▶︎ Installing Alpine |
| 2: | The basics of Alpine |
| 3: | Events |
| 4: | Defining data |
| 5: | Looping |
| 6: | Binding user input to variables |
| 7: | Watching variables change |
| 8: | Stores |