mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-22 03:32:18 -05:00
Generated with railsnew.io: `rails new van_dam --skip-action-mailbox --skip-action-text --skip-system-test --skip-test --template https://www.railsbytes.com/script/zyvso6`
19 lines
448 B
JavaScript
19 lines
448 B
JavaScript
// Visit The Stimulus Handbook for more details
|
|
// https://stimulusjs.org/handbook/introduction
|
|
//
|
|
// This example controller works with specially annotated HTML like:
|
|
//
|
|
// <div data-controller="hello">
|
|
// <h1 data-target="hello.output"></h1>
|
|
// </div>
|
|
|
|
import { Controller } from "stimulus"
|
|
|
|
export default class extends Controller {
|
|
static targets = [ "output" ]
|
|
|
|
connect() {
|
|
this.outputTarget.textContent = 'Hello, Stimulus!'
|
|
}
|
|
}
|