summaryrefslogtreecommitdiff
path: root/examples/framework-alpine/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/framework-alpine/src')
-rw-r--r--examples/framework-alpine/src/pages/index.astro8
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/framework-alpine/src/pages/index.astro b/examples/framework-alpine/src/pages/index.astro
index 3626ed604..19b7e6741 100644
--- a/examples/framework-alpine/src/pages/index.astro
+++ b/examples/framework-alpine/src/pages/index.astro
@@ -22,8 +22,12 @@ import Counter from '../components/Counter.astro';
}
</style>
- <!-- Be sure to include AlpineJS -->
- <script src="//unpkg.com/alpinejs" defer is:inline></script>
+ <!-- Load AlpineJS on the page -->
+ <script>
+ import Alpine from 'alpinejs';
+ window.Alpine = Alpine;
+ Alpine.start();
+ </script>
</head>
<body>
<main>