Add index.html with Stimulus hello controller

This commit is contained in:
Oliver Davies 2024-03-29 00:50:46 +00:00
parent b280d54f77
commit d379fdb73d
9 changed files with 524 additions and 0 deletions

5
assets/js/app.js Normal file
View file

@ -0,0 +1,5 @@
import { Application } from "@hotwired/stimulus";
import { definitions } from "stimulus:./controllers";
const app = Application.start();
app.load(definitions);

View file

@ -0,0 +1,7 @@
import { Controller } from "@hotwired/stimulus";
export default class extends Controller {
connect() {
console.log("hello#connect");
}
}