You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
448 B
18 lines
448 B
// 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!' |
|
} |
|
}
|
|
|