Website/app/assets/controllers/hello_controller.ts

8 lines
224 B
TypeScript
Raw Normal View History

2024-04-22 18:52:51 +00:00
import {Controller} from '@hotwired/stimulus';
export default class extends Controller {
connect(): void {
this.element.textContent = 'Hello Stimulus! Edit me in assets/controllers/hello_controller.js';
}
}