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.

17 lines
490B

  1. import { Controller } from 'stimulus';
  2. /*
  3. * This is an example Stimulus controller!
  4. *
  5. * Any element with a data-controller="hello" attribute will cause
  6. * this controller to be executed. The name "hello" comes from the filename:
  7. * hello_controller.js -> "hello"
  8. *
  9. * Delete this file or adapt it for your use!
  10. */
  11. export default class extends Controller {
  12. connect() {
  13. this.element.textContent = 'Hello Stimulus! Edit me in assets/controllers/hello_controller.js';
  14. }
  15. }