2022-10-01 15:50:16 +00:00
|
|
|
import { Controller } from '@hotwired/stimulus';
|
2021-04-17 21:15:30 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* 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';
|
|
|
|
}
|
|
|
|
}
|