glhd / alpine-wizard

Multi-step wizard helpers for Alpine.js
MIT License
149 stars 3 forks source link

How to use with Alpine.plugin() #2

Closed xtfer closed 2 years ago

xtfer commented 2 years ago

Maybe I'm missing something, but I can't get this to run using Alpine.plugin().

import Alpine from "alpinejs";
import * as wizard from "@glhd/alpine-wizard";

Alpine.plugin(wizard);

window.Alpine = Alpine;
Alpine.start();

Doesn't seem to work.

xtfer commented 2 years ago

Strike that. Rookie error. This works

import Alpine from "alpinejs";
import wizard from "@glhd/alpine-wizard";

Alpine.plugin(wizard);

window.Alpine = Alpine;
Alpine.start();