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.
16 lines
500 B
16 lines
500 B
import { Controller } from '@hotwired/stimulus'; |
|
|
|
/* |
|
* This is an example Stimulus controller! |
|
* |
|
* Any element with a data-controller="hello" attribute will cause |
|
* this controller to be executed. The name "hello" comes from the filename: |
|
* hello_controller.js -> "hello" |
|
* |
|
* Delete this file or adapt it for your use! |
|
*/ |
|
export default class extends Controller { |
|
connect() { |
|
this.element.textContent = 'Hello Stimulus! Edit me in assets/controllers/hello_controller.js'; |
|
} |
|
}
|
|
|