Installation page example just don't work

I tried use stimulus js without some build system and put it in my test.html file:

<!doctype html>
  <meta charset="utf-8">
  <script src=""></script>
    (() => {
      const application = Stimulus.Application.start()

      application.register("hello", class extends Stimulus.Controller {
        static get targets() {
          return [ "name" ]

        // …
  <div data-controller="hello">
    <input data-target="" type="text">

Nothing happened, nor an console error.
And i get this code here:

1 Like

The example is just boilerplate code. It doesn’t actually do anything. Try adding an action to the controller :slight_smile:

1 Like

Now that you have the boilerplate in place, try starting here: